trezor button should not be an attribute of window
This commit is contained in:
parent
3b830cbcfa
commit
d946e9fa54
|
@ -276,9 +276,9 @@ def qt_plugin_class(base_plugin_class):
|
||||||
for keystore in wallet.get_keystores():
|
for keystore in wallet.get_keystores():
|
||||||
if type(keystore) != self.keystore_class:
|
if type(keystore) != self.keystore_class:
|
||||||
continue
|
continue
|
||||||
window.tzb = StatusBarButton(QIcon(self.icon_file), self.device,
|
button = StatusBarButton(QIcon(self.icon_file), self.device,
|
||||||
partial(self.settings_dialog, window))
|
partial(self.settings_dialog, window))
|
||||||
window.statusBar().addPermanentWidget(window.tzb)
|
window.statusBar().addPermanentWidget(button)
|
||||||
keystore.handler = self.create_handler(window)
|
keystore.handler = self.create_handler(window)
|
||||||
keystore.thread = TaskThread(window, window.on_error)
|
keystore.thread = TaskThread(window, window.on_error)
|
||||||
# Trigger a pairing
|
# Trigger a pairing
|
||||||
|
|
Loading…
Reference in New Issue