Skip to content

Commit

Permalink
Improve wording in quit dialog of Qt Quick GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jan 30, 2025
1 parent 5b0c4c5 commit d9602d5
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions tray/gui/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -453,19 +453,35 @@ ApplicationWindow {
}

// handle closing
CustomDialog {
Dialog {
id: closeDialog
parent: Overlay.overlay
anchors.centerIn: Overlay.overlay
popupType: App.nativePopups ? Popup.Native : Popup.Item
width: Math.min(popupType === Popup.Item ? parent.width - 20 : implicitWidth, 800)
standardButtons: Dialog.NoButton
modal: true
title: window.title
contentItem: Label {
Layout.fillWidth: true
text: qsTr("Do you really want to close Syncthing? You can also just quit the UI but keep running Syncthing in the backround.")
text: qsTr("Do you want to shutdown Syncthing? You can also just quit the app and keep Syncthing running in the backround.")
wrapMode: Text.WordWrap
}
onAccepted: {
window.forceClose = true;
window.close();
}
footer: DialogButtonBox {
Button {
text: qsTr("Cancel")
flat: true
DialogButtonBox.buttonRole: DialogButtonBox.RejectRole
}
Button {
text: qsTr("Shutdown Syncthing and quit app")
flat: true
DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
}
Button {
text: qsTr("Run in background")
flat: true
Expand Down

0 comments on commit d9602d5

Please sign in to comment.