electrum

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

commit 5d7164f16f24380e7255fc430dda196b433b0b72
parent 94664566e731b2f118d109629c86b6eb32ee55f2
Author: ThomasV <thomasv@electrum.org>
Date:   Sat,  5 Mar 2016 05:00:33 +0100

kivy: fix password dialog issue

Diffstat:
Mgui/kivy/uix/dialogs/password_dialog.py | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gui/kivy/uix/dialogs/password_dialog.py b/gui/kivy/uix/dialogs/password_dialog.py @@ -68,7 +68,8 @@ Builder.load_string(''' size_hint: 0.5, None height: '48dp' text: _('Cancel') - on_release: popup.dismiss() + on_release: + popup.dismiss() ''') @@ -78,6 +79,7 @@ class PasswordDialog(Factory.Popup): Factory.Popup.__init__(self) self.message = message self.callback = callback + self.pw = None def update_password(self, c): kb = self.ids.kb @@ -92,5 +94,8 @@ class PasswordDialog(Factory.Popup): def on_password(self, pw): if len(pw) == 6: + self.pw = pw self.dismiss() - Clock.schedule_once(lambda dt: self.callback(pw), 0.1) + + def on_dismiss(self): + Clock.schedule_once(lambda dt: self.callback(self.pw), 0.1)