mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
replace message dialog with custom dialog
This commit is contained in:
parent
d4657804cd
commit
5a110f410f
1 changed files with 4 additions and 4 deletions
8
main.qml
8
main.qml
|
@ -685,11 +685,11 @@ ApplicationWindow {
|
||||||
// TODO: replace with customized popups
|
// TODO: replace with customized popups
|
||||||
|
|
||||||
// Information dialog
|
// Information dialog
|
||||||
MessageDialog {
|
StandardDialog {
|
||||||
// dynamically change onclose handler
|
// dynamically change onclose handler
|
||||||
property var onCloseCallback
|
property var onCloseCallback
|
||||||
id: informationPopup
|
id: informationPopup
|
||||||
standardButtons: StandardButton.Ok
|
cancelVisible: false
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
if (onCloseCallback) {
|
if (onCloseCallback) {
|
||||||
onCloseCallback()
|
onCloseCallback()
|
||||||
|
@ -698,10 +698,10 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Confrirmation aka question dialog
|
// Confrirmation aka question dialog
|
||||||
MessageDialog {
|
StandardDialog {
|
||||||
id: transactionConfirmationPopup
|
id: transactionConfirmationPopup
|
||||||
standardButtons: StandardButton.Ok + StandardButton.Cancel
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
|
close();
|
||||||
handleTransactionConfirmed()
|
handleTransactionConfirmed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue