mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
EditorSettings: Move interface/ properties to interface/editor
Fixes inconsistent behaviour where clicking on the "Interface" in the Editor Settings wouldn't collapse the category as is the case for all the other categories.
This commit is contained in:
parent
4f39ce32b9
commit
20eb17a685
7 changed files with 41 additions and 41 deletions
|
@ -1010,7 +1010,7 @@ void CodeTextEditor::_reset_zoom() {
|
|||
Ref<DynamicFont> font = text_editor->get_font("font"); // reset source font size to default
|
||||
|
||||
if (font.is_valid()) {
|
||||
EditorSettings::get_singleton()->set("interface/source_font_size", 14);
|
||||
EditorSettings::get_singleton()->set("interface/editor/source_font_size", 14);
|
||||
font->set_size(14);
|
||||
}
|
||||
}
|
||||
|
@ -1066,7 +1066,7 @@ void CodeTextEditor::_font_resize_timeout() {
|
|||
if (font.is_valid()) {
|
||||
int new_size = CLAMP(font->get_size() + font_resize_val, 8 * EDSCALE, 96 * EDSCALE);
|
||||
if (new_size != font->get_size()) {
|
||||
EditorSettings::get_singleton()->set("interface/source_font_size", new_size / EDSCALE);
|
||||
EditorSettings::get_singleton()->set("interface/editor/source_font_size", new_size / EDSCALE);
|
||||
font->set_size(new_size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue