Do not display the warning about static backups in init_lightning. It is not useful to display the same message twice.
This commit is contained in:
@@ -1416,7 +1416,9 @@ class ElectrumWindow(App, Logger):
|
||||
elif self.wallet.can_have_lightning():
|
||||
root.dismiss()
|
||||
if self.wallet.can_have_deterministic_lightning():
|
||||
msg = messages.MSG_LIGHTNING_SCB_WARNING + "\n" + _("Create lightning keys?")
|
||||
msg = _(
|
||||
"Lightning is not enabled because this wallet was created with an old version of Electrum. "
|
||||
"Create lightning keys?")
|
||||
else:
|
||||
msg = _(
|
||||
"Warning: this wallet type does not support channel recovery from seed. "
|
||||
|
||||
@@ -2386,7 +2386,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
|
||||
def init_lightning_dialog(self, dialog):
|
||||
assert not self.wallet.has_lightning()
|
||||
if self.wallet.can_have_deterministic_lightning():
|
||||
msg = messages.MSG_LIGHTNING_SCB_WARNING + "\n" + _("Create lightning keys?")
|
||||
msg = _(
|
||||
"Lightning is not enabled because this wallet was created with an old version of Electrum. "
|
||||
"Create lightning keys?")
|
||||
else:
|
||||
msg = _(
|
||||
"Warning: this wallet type does not support channel recovery from seed. "
|
||||
|
||||
Reference in New Issue
Block a user