mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 08:17:49 -06:00
Merge branch 'feature_restore_window_geometry' of https://github.com/fieldOfView/Cura
This commit is contained in:
commit
0aa2a4994c
1 changed files with 17 additions and 0 deletions
|
@ -94,6 +94,8 @@ UM.PreferencesPage
|
||||||
zoomToMouseCheckbox.checked = boolCheck(UM.Preferences.getValue("view/zoom_to_mouse"))
|
zoomToMouseCheckbox.checked = boolCheck(UM.Preferences.getValue("view/zoom_to_mouse"))
|
||||||
UM.Preferences.resetPreference("view/top_layer_count");
|
UM.Preferences.resetPreference("view/top_layer_count");
|
||||||
topLayerCountCheckbox.checked = boolCheck(UM.Preferences.getValue("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")
|
UM.Preferences.resetPreference("general/camera_perspective_mode")
|
||||||
var defaultCameraMode = UM.Preferences.getValue("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
|
UM.TooltipArea
|
||||||
{
|
{
|
||||||
width: childrenRect.width
|
width: childrenRect.width
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue