mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
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'
This commit is contained in:
parent
cad8e29ed7
commit
1d4ca34ca6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue