diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py index e51c9e407..e1aec9dc6 100644 --- a/plugins/btchipwallet.py +++ b/plugins/btchipwallet.py @@ -74,6 +74,8 @@ class Plugin(BasePlugin): @hook def load_wallet(self, wallet, window): + self.wallet = wallet + self.window = window if self.btchip_is_connected(): if not self.wallet.check_proper_device(): QMessageBox.information(self.window, _('Error'), _("This wallet does not match your BTChip device"), _('OK')) diff --git a/plugins/trustedcoin.py b/plugins/trustedcoin.py index 95f12a197..810c32af9 100644 --- a/plugins/trustedcoin.py +++ b/plugins/trustedcoin.py @@ -323,6 +323,8 @@ class Plugin(BasePlugin): @hook def load_wallet(self, wallet, window): + self.wallet = wallet + self.window = window 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/')