commit 5a5ec81e1010897f446f3b50ba744d278de062fb parent 64292fd1420f236eef43e8d45e20589c3b18bb88 Author: ThomasV <thomasv@electrum.org> Date: Sat, 5 Dec 2020 18:26:23 +0100 kivy: disable send amount button if lightning invoice has an amount, and fix #6526 Diffstat:
M | electrum/gui/kivy/uix/ui_screens/send.kv | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/electrum/gui/kivy/uix/ui_screens/send.kv b/electrum/gui/kivy/uix/ui_screens/send.kv @@ -111,8 +111,8 @@ id: amount_e default_text: _('Amount') text: s.amount if s.amount else _('Amount') - disabled: root.is_bip70 or (root.is_lightning and not s.amount) - on_release: Clock.schedule_once(lambda dt: app.amount_dialog(s, True)) + disabled: root.is_bip70 or (root.is_lightning and s.amount) + on_release: Clock.schedule_once(lambda dt: app.amount_dialog(s, not root.is_lightning)) CardSeparator: color: blue_bottom.foreground_color BoxLayout: