electrum

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

commit 8a656d648bfc3797dca9c0fc3e1c37af19d74d29
parent 986de70529d2fd3733575625eacf8f34ea9ae036
Author: ThomasV <thomasv@electrum.org>
Date:   Sun, 24 Jan 2021 15:44:38 +0100

kivy: disable gossip button is channel_db is None

Diffstat:
Melectrum/gui/kivy/uix/dialogs/lightning_channels.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/electrum/gui/kivy/uix/dialogs/lightning_channels.py b/electrum/gui/kivy/uix/dialogs/lightning_channels.py @@ -166,6 +166,7 @@ Builder.load_string(r''' name: 'lightning_channels' title: _('Lightning Network') has_lightning: False + has_gossip: False can_send: '' can_receive: '' num_channels_text: '' @@ -209,6 +210,7 @@ Builder.load_string(r''' size_hint: 0.3, None height: '48dp' text: _('Gossip') + disabled: not root.has_gossip on_release: popup.app.popup_dialog('lightning') @@ -531,6 +533,7 @@ class LightningChannelsDialog(Factory.Popup): self.clocks = [] self.app = app self.has_lightning = app.wallet.has_lightning() + self.has_gossip = self.app.network.channel_db is not None self.update() def show_item(self, obj):