URI: 
       tfix #6275 - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 9fd9703107a96bc3ef6d73ba896c49d700570dd1
   DIR parent b0c390e231cf7a2e2b6fe831af88ea368f80027c
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 26 Jun 2020 10:07:51 +0200
       
       fix #6275
       
       Diffstat:
         M electrum/gui/kivy/main_window.py    |       3 +++
         M electrum/gui/kivy/uix/dialogs/ligh… |       4 +++-
       
       2 files changed, 6 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py
       t@@ -715,6 +715,9 @@ class ElectrumWindow(App):
                self._settings_dialog.open()
        
            def lightning_open_channel_dialog(self):
       +        if not self.wallet.has_lightning():
       +            self.show_error(_('Lightning is not enabled for this wallet'))
       +            return
                d = LightningOpenChannelDialog(self)
                d.open()
        
   DIR diff --git a/electrum/gui/kivy/uix/dialogs/lightning_channels.py b/electrum/gui/kivy/uix/dialogs/lightning_channels.py
       t@@ -63,6 +63,7 @@ Builder.load_string(r'''
        <LightningChannelsDialog@Popup>:
            name: 'lightning_channels'
            title: _('Lightning channels.')
       +    has_lightning: False
            can_send: ''
            can_receive: ''
            id: popup
       t@@ -94,6 +95,7 @@ Builder.load_string(r'''
                        size_hint: 0.3, None
                        height: '48dp'
                        text: _('New...')
       +                disabled: not root.has_lightning
                        on_release: popup.app.popup_dialog('lightning_open_channel_dialog')
        
        
       t@@ -409,7 +411,7 @@ class LightningChannelsDialog(Factory.Popup):
                super(LightningChannelsDialog, self).__init__()
                self.clocks = []
                self.app = app
       -        self.can_send = ''
       +        self.has_lightning = app.wallet.has_lightning()
                self.update()
        
            def show_item(self, obj):