1
0

Trezor: GUI fixes

Trezor window was doing GUI stuff outside the GUI thread
This commit is contained in:
Neil Booth
2016-01-21 23:33:15 +09:00
parent 24037be99c
commit 0d14781463
3 changed files with 14 additions and 3 deletions

View File

@@ -312,9 +312,9 @@ class SettingsDialog(WindowModalDialog):
raise RuntimeError("Device not connected")
if method:
getattr(client, method)(*args, **kw_args)
update(client.features)
return client.features
thread.add(task)
thread.add(task, on_success=update)
def update(features):
self.current_label = features.label