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

@@ -283,9 +283,8 @@ Pane {
visible: channeldetails.canDelete
onClicked: {
var dialog = app.messageDialog.createObject(root, {
text: channeldetails.isBackup
? qsTr('Are you sure you want to delete this channel backup?')
: qsTr('Are you sure you want to delete this channel? This will purge associated transactions from your wallet history.'),
title: qsTr('Are you sure?'),
text: channeldetails.isBackup ? '' : qsTr('This will purge associated transactions from your wallet history.'),
yesno: true
})
dialog.accepted.connect(function() {