1
0

kivy: remove unnecessary friction in _enable_lightning

This commit is contained in:
ThomasV
2021-03-31 05:34:34 +02:00
parent 21b628d7a1
commit b0cf9dbeb3

View File

@@ -1436,11 +1436,8 @@ class ElectrumWindow(App, Logger):
def _enable_lightning(self, b):
if not b:
return
self.protected(_("Create lightning keys?"), self.__enable_lightning, ())
def __enable_lightning(self, password):
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.stop_wallet()
self.load_wallet_by_name(wallet_path)