Browse Source

kivy: remove unnecessary friction in _enable_lightning

patch-4
ThomasV 4 years ago
parent
commit
b0cf9dbeb3
  1. 5
      electrum/gui/kivy/main_window.py

5
electrum/gui/kivy/main_window.py

@ -1436,11 +1436,8 @@ class ElectrumWindow(App, Logger):
def _enable_lightning(self, b): def _enable_lightning(self, b):
if not b: if not b:
return return
self.protected(_("Create lightning keys?"), self.__enable_lightning, ())
def __enable_lightning(self, password):
wallet_path = self.get_wallet_path() wallet_path = self.get_wallet_path()
self.wallet.init_lightning(password=password) self.wallet.init_lightning(password=self.password)
self.show_info(_('Lightning keys have been initialized.')) self.show_info(_('Lightning keys have been initialized.'))
self.stop_wallet() self.stop_wallet()
self.load_wallet_by_name(wallet_path) self.load_wallet_by_name(wallet_path)

Loading…
Cancel
Save