|
|
@ -344,15 +344,13 @@ class Plugin(BasePlugin): |
|
|
|
|
|
|
|
@hook |
|
|
|
def load_wallet(self, wallet): |
|
|
|
self.wallet = wallet |
|
|
|
if self.is_enabled(): |
|
|
|
self.trustedcoin_button = StatusBarButton( QIcon(":icons/trustedcoin.png"), _("Network"), self.settings_dialog) |
|
|
|
self.window.statusBar().addPermanentWidget(self.trustedcoin_button) |
|
|
|
self.xpub = self.wallet.master_public_keys.get('x1/') |
|
|
|
self.user_id = self.get_user_id()[1] |
|
|
|
t = threading.Thread(target=self.request_billing_info) |
|
|
|
t.setDaemon(True) |
|
|
|
t.start() |
|
|
|
self.trustedcoin_button = StatusBarButton( QIcon(":icons/trustedcoin.png"), _("Network"), self.settings_dialog) |
|
|
|
self.window.statusBar().addPermanentWidget(self.trustedcoin_button) |
|
|
|
self.xpub = self.wallet.master_public_keys.get('x1/') |
|
|
|
self.user_id = self.get_user_id()[1] |
|
|
|
t = threading.Thread(target=self.request_billing_info) |
|
|
|
t.setDaemon(True) |
|
|
|
t.start() |
|
|
|
|
|
|
|
@hook |
|
|
|
def close_wallet(self): |
|
|
|