|
@@ -19,6 +19,21 @@ UM.Dialog
|
|
|
minimumHeight: UM.Theme.getSize("modal_window_minimum").height
|
|
|
|
|
|
backgroundColor: UM.Theme.getColor("detail_background")
|
|
|
+ property bool dontShowAgain: true
|
|
|
+
|
|
|
+ function storeDontShowAgain()
|
|
|
+ {
|
|
|
+ UM.Preferences.setValue("cura/dialog_on_ucp_project_save", !dontShowAgainCheckbox.checked)
|
|
|
+ UM.Preferences.setValue("asked_dialog_on_ucp_project_save", true)
|
|
|
+ }
|
|
|
+
|
|
|
+ onVisibleChanged:
|
|
|
+ {
|
|
|
+ if(visible && UM.Preferences.getValue("cura/asked_dialog_on_ucp_project_save"))
|
|
|
+ {
|
|
|
+ dontShowAgain = !UM.Preferences.getValue("cura/dialog_on_ucp_project_save")
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
headerComponent: Rectangle
|
|
|
{
|
|
@@ -75,7 +90,15 @@ UM.Dialog
|
|
|
delegate: SettingsSelectionGroup { Layout.margins: 0 }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ leftButtons:
|
|
|
+ [
|
|
|
+ UM.CheckBox
|
|
|
+ {
|
|
|
+ id: dontShowAgainCheckbox
|
|
|
+ text: catalog.i18nc("@action:label", "Don't show project summary on save again")
|
|
|
+ checked: dontShowAgain
|
|
|
+ }
|
|
|
+ ]
|
|
|
rightButtons:
|
|
|
[
|
|
|
Cura.TertiaryButton
|