Browse Source

qml: fix logical error with PIN code timeout.

master
ThomasV 3 years ago
parent
commit
09afacd51c
  1. 2
      electrum/gui/qml/components/main.qml

2
electrum/gui/qml/components/main.qml

@ -513,7 +513,7 @@ ApplicationWindow
// no PIN configured // no PIN configured
qtobject.authProceed() qtobject.authProceed()
} else { } else {
if (Date.now() - _lastCorrectPinTime > _pinValidSeconds * 1000) { if (Date.now() - _lastCorrectPinTime <= _pinValidSeconds * 1000) {
// correct pin entered recently, accept. // correct pin entered recently, accept.
qtobject.authProceed() qtobject.authProceed()
return return

Loading…
Cancel
Save