diff options
| author | Gilles Roudiere | 2017-09-30 12:38:59 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-30 12:38:59 +0200 |
| commit | e6dfce6b526fb3a48ceb450f9fe476ad94d7186a (patch) | |
| tree | 2e9f9247ffeadc206e5f39500e1a7fef1f22c085 /editor/code_editor.cpp | |
| parent | f494470005675a03584308d850307bf3c1fd568e (diff) | |
| parent | 20eb17a685bb426b2de4a1e791d90241e1a5b5e6 (diff) | |
| download | godot-e6dfce6b526fb3a48ceb450f9fe476ad94d7186a.tar.gz godot-e6dfce6b526fb3a48ceb450f9fe476ad94d7186a.tar.zst godot-e6dfce6b526fb3a48ceb450f9fe476ad94d7186a.zip | |
Diffstat (limited to 'editor/code_editor.cpp')
| -rw-r--r-- | editor/code_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index a7516c091..985b336d2 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -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); } |
