electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 100a216165baada3079dfe2d5f6501b39bb747a6
parent b59c3294b29c8899480a69b5c79bc37dd034b11e
Author: SomberNight <somber.night@protonmail.com>
Date:   Sun, 26 Apr 2020 05:49:34 +0200

qt wallet>info: add text if lightning is not available for wallet

Diffstat:
Melectrum/gui/qt/main_window.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py @@ -2260,6 +2260,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): ks_type = str(keystore_types[0]) if keystore_types else _('No keystore') grid.addWidget(QLabel(ks_type), 4, 1) # lightning + grid.addWidget(QLabel(_('Lightning') + ':'), 5, 0) if self.wallet.can_have_lightning(): if self.wallet.has_lightning(): lightning_b = QPushButton(_('Disable')) @@ -2272,9 +2273,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): lightning_b.clicked.connect(dialog.close) lightning_b.clicked.connect(self.enable_lightning) lightning_label = QLabel(_('Disabled')) - grid.addWidget(QLabel(_('Lightning')), 5, 0) grid.addWidget(lightning_label, 5, 1) grid.addWidget(lightning_b, 5, 2) + else: + grid.addWidget(QLabel(_("Not available for this wallet.")), 5, 1) + grid.addWidget(HelpButton(_("Lightning is currently restricted to HD wallets with p2wpkh addresses.")), 5, 2) vbox.addLayout(grid) labels_clayout = None