commit c6eb269cce541b5ac6560bc93db23004deff208e
parent f5dd32b8f25755d38bd2bbebac4be9899f0821d9
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 1 Jul 2017 22:26:14 +0200
follow-up previous commit
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/gui/qt/main_window.py b/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))