Browse Source

kivy: fix potential crash in on_resume

happened for me at least once, but for some reason kivy actually "ignored the exception", and simply printed a long trace into logcat, starting with:
WARNING:kivy:stderr: Exception ignored in: 'kivy.core.window._window_sdl2._WindowSDL2Storage.cb_event_filter'
master
SomberNight 8 years ago
parent
commit
1d4ca34ca6
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      gui/kivy/main_window.py

2
gui/kivy/main_window.py

@ -709,7 +709,7 @@ class ElectrumWindow(App):
def on_resume(self): def on_resume(self):
now = time.time() now = time.time()
if self.wallet.has_password and now - self.pause_time > 60: if self.wallet and self.wallet.has_password and now - self.pause_time > 60:
self.password_dialog(self.wallet, _('Enter PIN'), None, self.stop) self.password_dialog(self.wallet, _('Enter PIN'), None, self.stop)
if self.nfcscanner: if self.nfcscanner:
self.nfcscanner.nfc_enable() self.nfcscanner.nfc_enable()

Loading…
Cancel
Save