mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-24 03:11:03 -07: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
|
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:
|
onVisibleChanged:
|
||||||
{
|
{
|
||||||
if(visible)
|
if(visible && UM.Preferences.getValue("cura/asked_dialog_on_project_save"))
|
||||||
{
|
{
|
||||||
dontShowAgain = !UM.Preferences.getValue("cura/dialog_on_project_save")
|
dontShowAgain = !UM.Preferences.getValue("cura/dialog_on_project_save")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue