mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Fix storing the "dont show this again" of the project saving
This commit is contained in:
parent
7fda81b678
commit
44a616addd
1 changed files with 9 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue