mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
trezor: check device on load_wallet
This commit is contained in:
parent
6446d66859
commit
45a55e258f
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@ class Plugin(BasePlugin):
|
||||||
@hook
|
@hook
|
||||||
def load_wallet(self, wallet):
|
def load_wallet(self, wallet):
|
||||||
self.wallet = wallet
|
self.wallet = wallet
|
||||||
|
if not self.wallet.check_proper_device():
|
||||||
|
QMessageBox.information(None, _('Error'), _("This wallet does not match your Trezor device"), _('OK'))
|
||||||
|
|
||||||
@hook
|
@hook
|
||||||
def installwizard_restore(self, wizard, storage):
|
def installwizard_restore(self, wizard, storage):
|
||||||
|
|
Loading…
Add table
Reference in a new issue