1
0

plugins: trustedcoin fixes

This commit is contained in:
ThomasV
2015-11-26 14:15:54 +01:00
parent 042f8ef832
commit 9782734f4c
2 changed files with 17 additions and 12 deletions

View File

@@ -302,18 +302,6 @@ class TrustedCoinPlugin(BasePlugin):
def is_enabled(self):
return True
@hook
def on_new_window(self, window):
wallet = window.wallet
if wallet.storage.get('wallet_type') == '2fa':
button = StatusBarButton(QIcon(":icons/trustedcoin.png"),
_("TrustedCoin"),
partial(self.settings_dialog, window))
window.statusBar().addPermanentWidget(button)
t = Thread(target=self.request_billing_info, args=(wallet,))
t.setDaemon(True)
t.start()
def request_billing_info(self, wallet):
billing_info = server.get(wallet.get_user_id()[1])
billing_address = make_billing_address(wallet, billing_info['billing_index'])