From e13e0b11f199cdc1a6f20975ed9dec1e7be35d8b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 31 Mar 2021 11:00:55 +0200 Subject: [PATCH] Do not display the warning about static backups in init_lightning. It is not useful to display the same message twice. --- electrum/gui/kivy/main_window.py | 4 +++- electrum/gui/qt/main_window.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py index 714b48893..5d523e531 100644 --- a/electrum/gui/kivy/main_window.py +++ b/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. " diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index d3582a0f8..3e9d75eb4 100644 --- a/electrum/gui/qt/main_window.py +++ b/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. "