Browse Source

kivy: fixes regression where non-LN wallet cannot open settings...

fixes https://github.com/spesmilo/electrum/issues/6262#issuecomment-863087368
patch-4
SomberNight 4 years ago
parent
commit
c49d6995d2
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/kivy/uix/dialogs/settings.py

2
electrum/gui/kivy/uix/dialogs/settings.py

@ -130,7 +130,7 @@ class SettingsDialog(Factory.Popup):
self.wallet = self.app.wallet
self.use_encryption = self.wallet.has_password() if self.wallet else False
self.has_pin_code = self.app.has_pin_code()
self.enable_toggle_use_recoverable_channels = self.wallet.lnworker and self.wallet.lnworker.has_deterministic_node_id()
self.enable_toggle_use_recoverable_channels = bool(self.wallet.lnworker and self.wallet.lnworker.has_deterministic_node_id())
def get_language_name(self):
return languages.get(self.config.get('language', 'en_UK'), '')

Loading…
Cancel
Save