Apply advanced settings prompt: offer "no" without clear options

By request.
When prompted if previous settings should be applied, offer a
"no" button that only applies this time, and does not clear
settings.
This commit is contained in:
Floris Bos 2023-03-24 14:26:43 +01:00
parent 0378751295
commit b93fe29617
16 changed files with 1153 additions and 1188 deletions

View file

@ -20,6 +20,7 @@ Popup {
signal yes()
signal no()
signal noClearSettings()
signal editSettings()
// background of title
@ -92,7 +93,7 @@ Popup {
spacing: 20
ImButton {
text: qsTr("NO, CLEAR SETTINGS")
text: qsTr("NO")
onClicked: {
msgpopup.close()
msgpopup.no()
@ -101,6 +102,16 @@ Popup {
Material.background: "#c51a4a"
}
ImButton {
text: qsTr("NO, CLEAR SETTINGS")
onClicked: {
msgpopup.close()
msgpopup.noClearSettings()
}
Material.foreground: activeFocus ? "#d1dcfb" : "#ffffff"
Material.background: "#c51a4a"
}
ImButton {
text: qsTr("YES")
onClicked: {