Merge branch 'feature_restore_window_geometry' of https://github.com/fieldOfView/Cura

This commit is contained in:
Jaime van Kessel 2019-10-18 10:45:28 +02:00
commit 0aa2a4994c
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -94,6 +94,8 @@ UM.PreferencesPage
zoomToMouseCheckbox.checked = boolCheck(UM.Preferences.getValue("view/zoom_to_mouse"))
UM.Preferences.resetPreference("view/top_layer_count");
topLayerCountCheckbox.checked = boolCheck(UM.Preferences.getValue("view/top_layer_count"))
UM.Preferences.resetPreference("general/restore_window_geometry")
restoreWindowPositionCheckbox.checked = boolCheck(UM.Preferences.getValue("general/restore_window_geometry"))
UM.Preferences.resetPreference("general/camera_perspective_mode")
var defaultCameraMode = UM.Preferences.getValue("general/camera_perspective_mode")
@ -464,6 +466,21 @@ UM.PreferencesPage
}
}
UM.TooltipArea
{
width: childrenRect.width
height: childrenRect.height
text: catalog.i18nc("@info:tooltip", "Should Cura open at the location it was closed?")
CheckBox
{
id: restoreWindowPositionCheckbox
text: catalog.i18nc("@option:check", "Restore window position on start")
checked: boolCheck(UM.Preferences.getValue("general/restore_window_geometry"))
onCheckedChanged: UM.Preferences.setValue("general/restore_window_geometry", checked)
}
}
UM.TooltipArea
{
width: childrenRect.width