mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 17:39:02 +08:00
Add preference for general/restore_window_geometry
See https://github.com/Ultimaker/Uranium/pull/523
This commit is contained in:
parent
8b8429d629
commit
c9e281f52e
@ -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")
|
||||
@ -458,6 +460,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user