From 5cfe90919452c81d35b5d2286bcb627e0842fb2c Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 18 Nov 2017 16:53:22 +0100 Subject: [PATCH] digitalbitbox: delegate clear_dialog() calls to GUI thread --- plugins/digitalbitbox/digitalbitbox.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/digitalbitbox/digitalbitbox.py b/plugins/digitalbitbox/digitalbitbox.py index f2d47bf2..97e5b7d4 100644 --- a/plugins/digitalbitbox/digitalbitbox.py +++ b/plugins/digitalbitbox/digitalbitbox.py @@ -274,7 +274,7 @@ class DigitalBitbox_Client(): "To continue, touch the Digital Bitbox's light for 3 seconds.\r\n\r\n" \ "To cancel, briefly touch the light or wait for the timeout.")) hid_reply = self.hid_send_encrypt(b'{"reset":"__ERASE__"}') - self.handler.clear_dialog() + self.handler.finished() if 'error' in hid_reply: raise Exception(hid_reply['error']['message']) else: @@ -300,7 +300,7 @@ class DigitalBitbox_Client(): "To cancel, briefly touch the light or wait for the timeout.")) msg = b'{"seed":{"source": "backup", "key": "%s", "filename": "%s"}}' % (key, backups['backup'][f].encode('utf8')) hid_reply = self.hid_send_encrypt(msg) - self.handler.clear_dialog() + self.handler.finished() if 'error' in hid_reply: raise Exception(hid_reply['error']['message']) return True @@ -432,7 +432,7 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore): "To continue, touch the Digital Bitbox's blinking light for 3 seconds.\r\n\r\n" \ "To cancel, briefly touch the blinking light or wait for the timeout.")) reply = dbb_client.hid_send_encrypt(msg) # Send twice, first returns an echo for smart verification (not implemented) - self.handler.clear_dialog() + self.handler.finished() if 'error' in reply: raise Exception(reply['error']['message']) @@ -564,7 +564,7 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore): # Send twice, first returns an echo for smart verification reply = dbb_client.hid_send_encrypt(msg) - self.handler.clear_dialog() + self.handler.finished() if 'error' in reply: raise Exception(reply['error']['message'])