1
0

qml MessageDialog: split messages into title and header message. hide header if it is empty.

This commit is contained in:
ThomasV
2023-04-18 14:07:41 +02:00
parent bea41d2098
commit 5e29b94561
10 changed files with 28 additions and 23 deletions

View File

@@ -375,7 +375,7 @@ ApplicationWindow
app.handleAuthRequired(_swaphelper, method, authMessage)
}
onError: {
var dialog = app.messageDialog.createObject(app, { text: message })
var dialog = app.messageDialog.createObject(app, { title: qsTr('Error'), text: message })
dialog.open()
}
}
@@ -452,7 +452,7 @@ ApplicationWindow
mainStackView.clear()
} else {
var dialog = app.messageDialog.createObject(app, {
text: qsTr('Close Electrum?'),
title: qsTr('Close Electrum?'),
yesno: true
})
dialog.accepted.connect(function() {
@@ -578,7 +578,7 @@ ApplicationWindow
qtobject.authProceed()
return
}
var dialog = app.messageDialog.createObject(app, {text: authMessage, yesno: true})
var dialog = app.messageDialog.createObject(app, {title: authMessage, yesno: true})
dialog.accepted.connect(function() {
qtobject.authProceed()
})