Do not add gui.menu plugins with prefix 'address' to "All accounts" item

This commit is contained in:
Dmitri Bogomolov 2018-02-20 16:22:46 +02:00
parent 08a2115412
commit 3850a920c9
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -3847,9 +3847,10 @@ class MyForm(settingsmixin.SMainWindow):
self.popMenuYourIdentities.addAction(self.actionSpecialAddressBehaviorYourIdentities) self.popMenuYourIdentities.addAction(self.actionSpecialAddressBehaviorYourIdentities)
self.popMenuYourIdentities.addAction(self.actionEmailGateway) self.popMenuYourIdentities.addAction(self.actionEmailGateway)
self.popMenuYourIdentities.addSeparator() self.popMenuYourIdentities.addSeparator()
# preloaded gui.menu plugins with prefix 'address' if currentItem.type != AccountMixin.ALL:
for plugin in self.menu_plugins['address']: # preloaded gui.menu plugins with prefix 'address'
self.popMenuYourIdentities.addAction(plugin) for plugin in self.menu_plugins['address']:
self.popMenuYourIdentities.addAction(plugin)
self.popMenuYourIdentities.addSeparator() self.popMenuYourIdentities.addSeparator()
self.popMenuYourIdentities.addAction(self.actionMarkAllRead) self.popMenuYourIdentities.addAction(self.actionMarkAllRead)