Browse Source

kivy: do not request PIN for watching-only wallets

3.3.3.1
ThomasV 6 years ago
parent
commit
b1b6b250d1
  1. 4
      electrum/gui/kivy/uix/dialogs/installwizard.py

4
electrum/gui/kivy/uix/dialogs/installwizard.py

@ -1027,6 +1027,10 @@ class InstallWizard(BaseWizard, Widget):
Clock.schedule_once(lambda dt: app.show_error(msg)) Clock.schedule_once(lambda dt: app.show_error(msg))
def request_password(self, run_next, force_disable_encrypt_cb=False): def request_password(self, run_next, force_disable_encrypt_cb=False):
if force_disable_encrypt_cb:
# do not request PIN for watching-only wallets
run_next(None, False)
return
def on_success(old_pin, pin): def on_success(old_pin, pin):
assert old_pin is None assert old_pin is None
run_next(pin, False) run_next(pin, False)

Loading…
Cancel
Save