diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-06-01 01:39:21 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-01 01:39:21 -0500 |
| commit | 2946127ed791ef8dd6dc430b681a14cd5bd2d71e (patch) | |
| tree | 6cbd6673d5826558199af4334ed24368156cfd67 | |
| parent | 416979cdbdac708b7fd55c585979a2f415ff479a (diff) | |
| parent | 8411ec0787c4b94c521bf4ba73db2bf00a983ae0 (diff) | |
| download | monzero-gui-2946127ed791ef8dd6dc430b681a14cd5bd2d71e.tar.gz monzero-gui-2946127ed791ef8dd6dc430b681a14cd5bd2d71e.tar.xz monzero-gui-2946127ed791ef8dd6dc430b681a14cd5bd2d71e.zip | |
Merge pull request #3512
8411ec0 main: hide/show popups before/after inactivity screen lock (rating89us)
| -rw-r--r-- | main.qml | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -2212,6 +2212,8 @@ ApplicationWindow { if(!persistentSettings.lockOnUserInActivity) return; if(passwordDialog.visible) return; var inputDialogVisible = inputDialog && inputDialog.visible + var successfulTxPopupVisible = successfulTxPopup && successfulTxPopup.visible + var informationPopupVisible = informationPopup && informationPopup.visible // prompt password after X seconds of inactivity var epoch = Math.floor((new Date).getTime() / 1000); @@ -2221,15 +2223,22 @@ ApplicationWindow { passwordDialog.onAcceptedCallback = function() { if(walletPassword === passwordDialog.password){ passwordDialog.close(); + if (inputDialogVisible) inputDialog.open(inputDialog.inputText) + if (successfulTxPopupVisible) successfulTxPopup.open(successfulTxPopup.transactionID) + if (informationPopupVisible) informationPopup.open() } else { passwordDialog.showError(qsTr("Wrong password")); } - if (inputDialogVisible) inputDialog.open(inputDialog.inputText) } passwordDialog.onRejectedCallback = function() { appWindow.showWizard(); } if (inputDialogVisible) inputDialog.close() remoteNodeDialog.close(); + informationPopup.close() + txConfirmationPopup.close() + txConfirmationPopup.clearFields() + txConfirmationPopup.rejected() + successfulTxPopup.close(); passwordDialog.open(); } |
