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