Add preference to actually set the flip preference for Y handle

This commit is contained in:
Jaime van Kessel 2024-11-29 11:40:47 +01:00
parent e9d5912183
commit 1b9f1c5536
No known key found for this signature in database
GPG Key ID: C85F7A3AF1BAA7C4

View File

@ -109,6 +109,9 @@ UM.PreferencesPage
UM.Preferences.resetPreference("general/restore_window_geometry")
restoreWindowPositionCheckbox.checked = boolCheck(UM.Preferences.getValue("general/restore_window_geometry"))
UM.Preferences.resetPreference("tool/flip_y_axis_tool_handle")
flipToolhandleYCheckbox.checked = boolcheck(UM.Preferences.getValue("tool/flip_y_axis_tool_handle"))
UM.Preferences.resetPreference("general/camera_perspective_mode")
//var defaultCameraMode = UM.Preferences.getValue("general/camera_perspective_mode")
// /setDefaultCameraMode(defaultCameraMode)
@ -662,6 +665,21 @@ UM.PreferencesPage
}
}
}
UM.TooltipArea
{
width: childrenRect.width
height: childrenRect.height
text: catalog.i18nc("@info:tooltip", "Should the Y axis of the translate toolhandle be flipped?")
UM.CheckBox
{
id: flipToolhandleYCheckbox
text: catalog.i18nc("@option:check", "Flip toolhandle Y axis")
checked: boolCheck(UM.Preferences.getValue("tool/flip_y_axis_tool_handle"))
onCheckedChanged: UM.Preferences.setValue("tool/flip_y_axis_tool_handle", checked)
}
}
Item
{