diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-05-10 11:26:39 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-05-10 11:26:39 +0300 |
commit | 44a616addd52ab077537c4dd3f35eea0eb82ceeb (patch) | |
tree | 3f0c2b0700e991cfa5811641b9bcc2848446c25d /resources/qml | |
parent | 7fda81b6788a7c2a4fe8f96866b777edd16dd4ef (diff) |
Fix storing the "dont show this again" of the project saving
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/Dialogs/WorkspaceSummaryDialog.qml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/resources/qml/Dialogs/WorkspaceSummaryDialog.qml b/resources/qml/Dialogs/WorkspaceSummaryDialog.qml index 411dc44f83..ee189ab73c 100644 --- a/resources/qml/Dialogs/WorkspaceSummaryDialog.qml +++ b/resources/qml/Dialogs/WorkspaceSummaryDialog.qml @@ -20,11 +20,18 @@ UM.Dialog property bool dontShowAgain: true - onClosing: UM.Preferences.setValue("cura/dialog_on_project_save", !dontShowAgainCheckbox.checked) + function storeDontShowAgain() + { + UM.Preferences.setValue("cura/dialog_on_project_save", !dontShowAgainCheckbox.checked) + UM.Preferences.setValue("asked_dialog_on_project_save", true) + } + onClosing: storeDontShowAgain() + onRejected: storeDontShowAgain() + onAccepted: storeDontShowAgain() onVisibleChanged: { - if(visible) + if(visible && UM.Preferences.getValue("cura/asked_dialog_on_project_save")) { dontShowAgain = !UM.Preferences.getValue("cura/dialog_on_project_save") } |