mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 20:40:27 +00:00
main: fix wallet lock is unlocked without password
This commit is contained in:
parent
500c7ec82e
commit
c5785ed195
1 changed files with 3 additions and 0 deletions
3
main.qml
3
main.qml
|
@ -2044,6 +2044,7 @@ ApplicationWindow {
|
|||
if(rootItem.state !== "normal") return;
|
||||
if(!persistentSettings.lockOnUserInActivity) return;
|
||||
if(passwordDialog.visible) return;
|
||||
var inputDialogVisible = inputDialog && inputDialog.visible
|
||||
|
||||
// prompt password after X seconds of inactivity
|
||||
var epoch = Math.floor((new Date).getTime() / 1000);
|
||||
|
@ -2056,9 +2057,11 @@ ApplicationWindow {
|
|||
} else {
|
||||
passwordDialog.showError(qsTr("Wrong password"));
|
||||
}
|
||||
if (inputDialogVisible) inputDialog.open(inputDialog.inputText)
|
||||
}
|
||||
|
||||
passwordDialog.onRejectedCallback = function() { appWindow.showWizard(); }
|
||||
if (inputDialogVisible) inputDialog.close()
|
||||
passwordDialog.open();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue