Skip to content

Commit 2d2925f

Browse files
committed
Merge pull request #121715 from D4r3NPo/set-the-display-scale-to-custom-when-custom-display-scale-changed
Switch display scale to 'Custom' when custom display scale changes
2 parents 45a9806 + 24349dd commit 2d2925f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

editor/settings/editor_settings_dialog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ void EditorSettingsDialog::_settings_property_edited() {
9393
} else if (full_name == "editors/3d/navigation/navigation_scheme") {
9494
update_3d_navigation_preset();
9595
_update_shortcuts();
96+
} else if (full_name == "interface/editor/appearance/custom_display_scale") {
97+
// The "Custom" display scale is index 7 in the setting's enum hint.
98+
EditorSettings::get_singleton()->set_manually("interface/editor/appearance/display_scale", 7);
9699
}
97100
}
98101

0 commit comments

Comments
 (0)