follow-up d56162c588
This commit is contained in:
@@ -220,10 +220,11 @@ class QtPluginBase(object):
|
||||
return
|
||||
tooltip = self.device + '\n' + (keystore.label or 'unnamed')
|
||||
cb = partial(self._on_status_bar_button_click, window=window, keystore=keystore)
|
||||
button = StatusBarButton(read_QIcon(self.icon_unpaired), tooltip, cb)
|
||||
sb = window.statusBar()
|
||||
button = StatusBarButton(read_QIcon(self.icon_unpaired), tooltip, cb, sb.height())
|
||||
button.icon_paired = self.icon_paired
|
||||
button.icon_unpaired = self.icon_unpaired
|
||||
window.statusBar().addPermanentWidget(button)
|
||||
sb.addPermanentWidget(button)
|
||||
handler = self.create_handler(window)
|
||||
handler.button = button
|
||||
keystore.handler = handler
|
||||
|
||||
@@ -61,10 +61,10 @@ class Plugin(RevealerPlugin):
|
||||
self.extension = False
|
||||
|
||||
@hook
|
||||
def create_status_bar(self, parent):
|
||||
def create_status_bar(self, sb):
|
||||
b = StatusBarButton(read_QIcon('revealer.png'), "Revealer "+_("Visual Cryptography Plugin"),
|
||||
partial(self.setup_dialog, parent))
|
||||
parent.addPermanentWidget(b)
|
||||
partial(self.setup_dialog, sb), sb.height())
|
||||
sb.addPermanentWidget(b)
|
||||
|
||||
def requires_settings(self):
|
||||
return True
|
||||
|
||||
@@ -103,8 +103,9 @@ class Plugin(TrustedCoinPlugin):
|
||||
else:
|
||||
action = partial(self.settings_dialog, window)
|
||||
icon = read_QIcon("trustedcoin-status.png")
|
||||
button = StatusBarButton(icon, _("TrustedCoin"), action)
|
||||
window.statusBar().addPermanentWidget(button)
|
||||
sb = window.statusBar()
|
||||
button = StatusBarButton(icon, _("TrustedCoin"), action, sb.height())
|
||||
sb.addPermanentWidget(button)
|
||||
self.start_request_thread(window.wallet)
|
||||
|
||||
def auth_dialog(self, window):
|
||||
|
||||
Reference in New Issue
Block a user