follow-up previous commit

This commit is contained in:
ThomasV 2017-07-01 22:26:14 +02:00
parent f5dd32b8f2
commit c6eb269cce
1 changed files with 0 additions and 1 deletions

View File

@ -453,7 +453,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
def add_toggle_action(view_menu, target_tab, tab_description, tab_name):
is_shown = self.config.get('show_{}_tab'.format(tab_name), False)
item_name = (_("Hide") if is_shown else _("Show")) + " " + tab_description
target_tab = getattr(self, "{}_tab".format(tab_name))
target_tab.name = tab_name
target_tab.description = tab_description
target_tab.menu_action = view_menu.addAction(item_name, lambda: self.toggle_tab(target_tab))