URI: 
       tqt main window: hide "Channels" tab if lightning is disabled - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 63217c1ca717faca7e6d54462ce3b9c3cd6522af
   DIR parent 70cd29f9e1d442863492aef69faf191e6ba40a30
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Thu, 13 Jun 2019 17:32:07 +0200
       
       qt main window: hide "Channels" tab if lightning is disabled
       
       Diffstat:
         M electrum/gui/qt/main_window.py      |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
       t@@ -189,7 +189,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
                        tabs.addTab(tab, icon, description.replace("&", ""))
        
                add_optional_tab(tabs, self.addresses_tab, read_QIcon("tab_addresses.png"), _("&Addresses"), "addresses")
       -        add_optional_tab(tabs, self.channels_tab, read_QIcon("lightning.png"), _("Channels"), "channels")
       +        if self.config.get('lightning'):
       +            add_optional_tab(tabs, self.channels_tab, read_QIcon("lightning.png"), _("Channels"), "channels")
                add_optional_tab(tabs, self.utxo_tab, read_QIcon("tab_coins.png"), _("Co&ins"), "utxo")
                add_optional_tab(tabs, self.contacts_tab, read_QIcon("tab_contacts.png"), _("Con&tacts"), "contacts")
                add_optional_tab(tabs, self.console_tab, read_QIcon("tab_console.png"), _("Con&sole"), "console")