From f020125e74bcbea0e540a636bf697b9c3e6d98bc Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 5 Dec 2020 19:48:10 +0100 Subject: [PATCH] kivy screens: initialize is_max (fix #6813) --- electrum/gui/kivy/uix/screens.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py index ce5425d0d..766e6cf32 100644 --- a/electrum/gui/kivy/uix/screens.py +++ b/electrum/gui/kivy/uix/screens.py @@ -181,6 +181,7 @@ class SendScreen(CScreen, Logger): def __init__(self, **kwargs): CScreen.__init__(self, **kwargs) Logger.__init__(self) + self.is_max = False def set_URI(self, text: str): if not self.app.wallet: @@ -436,6 +437,7 @@ class ReceiveScreen(CScreen): def __init__(self, **kwargs): super(ReceiveScreen, self).__init__(**kwargs) Clock.schedule_interval(lambda dt: self.update(), 5) + self.is_max = False # not used for receiving (see app.amount_dialog) def expiry(self): return self.app.electrum_config.get('request_expiry', PR_DEFAULT_EXPIRATION_WHEN_CREATING) @@ -443,7 +445,6 @@ class ReceiveScreen(CScreen): def clear(self): self.address = '' self.amount = '' - self.is_max = False # not used for receiving (see app.amount_dialog) self.message = '' self.lnaddr = ''