Browse Source

kivy: request PIN to load_wallet only on android

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 5 years ago
parent
commit
30092cd68c
  1. 2
      electrum/gui/kivy/main_window.py

2
electrum/gui/kivy/main_window.py

@ -596,7 +596,7 @@ class ElectrumWindow(App):
return return
wallet = self.daemon.load_wallet(path, None) wallet = self.daemon.load_wallet(path, None)
if wallet: if wallet:
if wallet.has_password(): if platform == 'android' and wallet.has_password():
self.password_dialog(wallet, _('Enter PIN code'), lambda x: self.load_wallet(wallet), self.stop) self.password_dialog(wallet, _('Enter PIN code'), lambda x: self.load_wallet(wallet), self.stop)
else: else:
self.load_wallet(wallet) self.load_wallet(wallet)

Loading…
Cancel
Save