Browse Source

kivy: receive to ln invoice should be disabled if lightning is disabled

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 5 years ago
parent
commit
49a2dbb021
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/gui/kivy/main_window.py
  2. 2
      electrum/gui/kivy/uix/ui_screens/receive.kv

3
electrum/gui/kivy/main_window.py

@ -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
@ -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)

2
electrum/gui/kivy/uix/ui_screens/receive.kv

@ -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

Loading…
Cancel
Save