Fix behavior on pressing "X" in advanced options dialog

In the "advanced settings" dialog, if "X" instead of
"apply settings" is clicked, it is seen as "cancel" and
no settings are applied.

If there do are saved settings, make sure to ask the
user on pressing "write" if they do want the saved settings
applied, instead of applying no settings.
This commit is contained in:
Floris Bos 2022-11-14 21:41:51 +01:00
parent 142ddfc037
commit c3237625bf

View file

@ -59,6 +59,7 @@ Popup {
anchors.fill: parent anchors.fill: parent
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onClicked: { onClicked: {
initialized = false
popup.close() popup.close()
} }
} }