1
0

kivy: disable send amount button if lightning invoice has an amount, and fix #6526

This commit is contained in:
ThomasV
2020-12-05 18:26:23 +01:00
parent 64292fd142
commit 5a5ec81e10

View File

@@ -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: