diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py index ba5d668ec..6205de3a5 100644 --- a/electrum/gui/kivy/main_window.py +++ b/electrum/gui/kivy/main_window.py @@ -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)