Fix storing the "dont show this again" of the project saving

This commit is contained in:
Jaime van Kessel 2022-05-10 10:26:39 +02:00
parent 7fda81b678
commit 44a616addd

View file

@ -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")
}