mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Merge branch '5.0' of github.com:Ultimaker/Cura
This commit is contained in:
commit
5c7423e007
3 changed files with 15 additions and 3 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