1
0

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

fixes https://github.com/spesmilo/electrum/issues/6262#issuecomment-863087368
This commit is contained in:
SomberNight
2021-06-17 11:48:58 +02:00
parent 81a71ec09b
commit c49d6995d2

View File

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