mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:45:55 +08:00
Fix storing the "dont show this again" of the project saving
This commit is contained in:
parent
7fda81b678
commit
44a616addd
@ -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…
x
Reference in New Issue
Block a user