mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 03:27:25 -04:00
replace message dialog with custom dialog
This commit is contained in:
8
main.qml
8
main.qml
@@ -685,11 +685,11 @@ ApplicationWindow {
|
||||
// TODO: replace with customized popups
|
||||
|
||||
// Information dialog
|
||||
MessageDialog {
|
||||
StandardDialog {
|
||||
// dynamically change onclose handler
|
||||
property var onCloseCallback
|
||||
id: informationPopup
|
||||
standardButtons: StandardButton.Ok
|
||||
cancelVisible: false
|
||||
onAccepted: {
|
||||
if (onCloseCallback) {
|
||||
onCloseCallback()
|
||||
@@ -698,10 +698,10 @@ ApplicationWindow {
|
||||
}
|
||||
|
||||
// Confrirmation aka question dialog
|
||||
MessageDialog {
|
||||
StandardDialog {
|
||||
id: transactionConfirmationPopup
|
||||
standardButtons: StandardButton.Ok + StandardButton.Cancel
|
||||
onAccepted: {
|
||||
close();
|
||||
handleTransactionConfirmed()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user