mirror of
https://github.com/monero-project/monero-gui
synced 2024-11-19 13:37:13 +01:00
tx confirm password dialog: clear when cancelled
This commit is contained in:
parent
6f14fde89c
commit
1e4e8ae59a
10
main.qml
10
main.qml
@ -930,6 +930,9 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
transactionConfirmationPasswordDialog.password = ""
|
transactionConfirmationPasswordDialog.password = ""
|
||||||
}
|
}
|
||||||
|
transactionConfirmationPasswordDialog.onRejectedCallback = function() {
|
||||||
|
transactionConfirmationPasswordDialog.password = ""
|
||||||
|
}
|
||||||
transactionConfirmationPasswordDialog.open()
|
transactionConfirmationPasswordDialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -983,10 +986,15 @@ ApplicationWindow {
|
|||||||
PasswordDialog {
|
PasswordDialog {
|
||||||
id: transactionConfirmationPasswordDialog
|
id: transactionConfirmationPasswordDialog
|
||||||
property var onAcceptedCallback
|
property var onAcceptedCallback
|
||||||
|
property var onRejectedCallback
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
if (onAcceptedCallback())
|
if (onAcceptedCallback)
|
||||||
onAcceptedCallback();
|
onAcceptedCallback();
|
||||||
}
|
}
|
||||||
|
onRejected: {
|
||||||
|
if (onRejectedCallback)
|
||||||
|
onRejectedCallback();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DaemonManagerDialog {
|
DaemonManagerDialog {
|
||||||
|
Loading…
Reference in New Issue
Block a user