Browse Source

Do not display the warning about static backups in init_lightning. It is not useful to display the same message twice.

patch-4
ThomasV 4 years ago
parent
commit
e13e0b11f1
  1. 4
      electrum/gui/kivy/main_window.py
  2. 4
      electrum/gui/qt/main_window.py

4
electrum/gui/kivy/main_window.py

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

4
electrum/gui/qt/main_window.py

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

Loading…
Cancel
Save