Fix disabling of zoom-to-mouse preference in orthographic camera mode

It doesn't work then.

Done as a 5-minute-fix.
This commit is contained in:
Ghostkeeper 2020-08-03 12:27:37 +02:00
parent b2ca6a9224
commit 877e2213de
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -409,7 +409,7 @@ UM.PreferencesPage
text: catalog.i18nc("@action:button", "Zoom toward mouse direction")
checked: boolCheck(UM.Preferences.getValue("view/zoom_to_mouse")) && zoomToMouseCheckbox.enabled
onClicked: UM.Preferences.setValue("view/zoom_to_mouse", checked)
enabled: UM.Preferences.getValue("general/camera_perspective_mode") !== "orthogonal"
enabled: UM.Preferences.getValue("general/camera_perspective_mode") !== "orthographic"
}
//Because there is no signal for individual preferences, we need to manually link to the onPreferenceChanged signal.