1
0

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:
ThomasV
2021-03-31 11:00:55 +02:00
parent bf6ecb6418
commit e13e0b11f1
2 changed files with 6 additions and 2 deletions

View File

@@ -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. "

View File

@@ -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. "