tkivy: receive to ln invoice should be disabled 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 49a2dbb0214ef9d3d405b9487082f5f128b1c057 DIR parent ff9cc4d292867de400c77d481bdee01335615141 HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 16 Sep 2019 16:19:19 +0200 kivy: receive to ln invoice should be disabled if lightning is disabled Diffstat: M electrum/gui/kivy/main_window.py | 3 ++- M electrum/gui/kivy/uix/ui_screens/r… | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py t@@ -321,7 +321,6 @@ class ElectrumWindow(App): App.__init__(self)#, **kwargs) - title = _('Electrum App') self.electrum_config = config = kwargs.get('config', None) # type: SimpleConfig self.language = config.get('language', 'en') self.network = network = kwargs.get('network', None) # type: Network t@@ -341,6 +340,8 @@ class ElectrumWindow(App): self.daemon = self.gui_object.daemon self.fx = self.daemon.fx + self.is_lightning_enabled = bool(config.get('lightning')) + self.use_rbf = config.get('use_rbf', True) self.use_unconfirmed = not config.get('confirmed_only', False) DIR diff --git a/electrum/gui/kivy/uix/ui_screens/receive.kv b/electrum/gui/kivy/uix/ui_screens/receive.kv t@@ -91,7 +91,7 @@ ReceiveScreen: id: address_label text: _('Lightning') if root.is_lightning else (s.address if s.address else _('Bitcoin Address')) shorten: True - on_release: root.is_lightning = not root.is_lightning + on_release: root.is_lightning = not root.is_lightning if app.is_lightning_enabled else False CardSeparator: opacity: message_selection.opacity color: blue_bottom.foreground_color