diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-05-27 22:25:35 +0200 |
|---|---|---|
| committer | rating89us <rating89us@rating89us.com> | 2021-05-28 12:22:59 +0200 |
| commit | 8411ec0787c4b94c521bf4ba73db2bf00a983ae0 (patch) | |
| tree | be5e9617ae37088d58010e199fc08d66fcc5e230 | |
| parent | 937cb9825672d07a1917d2d9daf823802ec31d1b (diff) | |
| download | monzero-gui-8411ec0787c4b94c521bf4ba73db2bf00a983ae0.tar.gz monzero-gui-8411ec0787c4b94c521bf4ba73db2bf00a983ae0.tar.xz monzero-gui-8411ec0787c4b94c521bf4ba73db2bf00a983ae0.zip | |
main: hide/show popups before/after inactivity screen lock
| -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(); } |
