Browse Source

follow-up previous commit

2.9.x
ThomasV 7 years ago
parent
commit
c6eb269cce
  1. 1
      gui/qt/main_window.py

1
gui/qt/main_window.py

@ -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))

Loading…
Cancel
Save