electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 82c2c22a6e4b9307dcb45fd7b40ab2fbc48a7b0f
parent f708ba0b34f4b5b5a64b7bc0abc7e46a9dcbe661
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 13 Jul 2017 11:29:19 +0200

Merge pull request #2602 from bauerj/toggle-shortcut

Add shortcuts to toggle actions in view menu
Diffstat:
Mgui/qt/main_window.py | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -137,12 +137,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): tab.tab_pos = len(tabs) tab.tab_name = name if self.config.get('show_{}_tab'.format(name), False): - tabs.addTab(tab, icon, description) + tabs.addTab(tab, icon, description.replace("&", "")) - add_optional_tab(tabs, self.addresses_tab, QIcon(":icons/tab_addresses.png"), _("Addresses"), "addresses") - add_optional_tab(tabs, self.utxo_tab, QIcon(":icons/tab_coins.png"), _("Coins"), "utxo") - add_optional_tab(tabs, self.contacts_tab, QIcon(":icons/tab_contacts.png"), _("Contacts"), "contacts") - add_optional_tab(tabs, self.console_tab, QIcon(":icons/tab_console.png"), _("Console"), "console") + add_optional_tab(tabs, self.addresses_tab, QIcon(":icons/tab_addresses.png"), _("&Addresses"), "addresses") + add_optional_tab(tabs, self.utxo_tab, QIcon(":icons/tab_coins.png"), _("Co&ins"), "utxo") + add_optional_tab(tabs, self.contacts_tab, QIcon(":icons/tab_contacts.png"), _("Con&tacts"), "contacts") + add_optional_tab(tabs, self.console_tab, QIcon(":icons/tab_console.png"), _("Con&sole"), "console") tabs.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) self.setCentralWidget(tabs) @@ -226,7 +226,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): break except AttributeError: pass - self.tabs.insertTab(index, tab, tab.tab_icon, tab.tab_description) + self.tabs.insertTab(index, tab, tab.tab_icon, tab.tab_description.replace("&", "")) else: i = self.tabs.indexOf(tab) self.tabs.removeTab(i)