diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-27 10:17:47 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-27 10:17:47 +0100 |
commit | e770a38d0051c2685dec2e30c5e0d01c6046e393 (patch) | |
tree | 6417551f9e47a08141314d868c9ebe7e09a1c03c /editor/plugins/text_shader_editor.cpp | |
parent | 8f98ed65f7d4c1da6256213769fc74ee8c836766 (diff) | |
parent | ea401f9853b3d84a77dfaedb9a5f7c286ec21d05 (diff) | |
download | redot-engine-e770a38d0051c2685dec2e30c5e0d01c6046e393.tar.gz |
Merge pull request #88742 from MajorMcDoom/text-editor-zoom
Fix the text editor theme not being applied on editor start
Diffstat (limited to 'editor/plugins/text_shader_editor.cpp')
-rw-r--r-- | editor/plugins/text_shader_editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/text_shader_editor.cpp b/editor/plugins/text_shader_editor.cpp index d73163e3b7..5a1fe833d6 100644 --- a/editor/plugins/text_shader_editor.cpp +++ b/editor/plugins/text_shader_editor.cpp @@ -37,6 +37,7 @@ #include "editor/filesystem_dock.h" #include "editor/project_settings_editor.h" #include "editor/themes/editor_scale.h" +#include "editor/themes/editor_theme_manager.h" #include "scene/gui/split_container.h" #include "servers/rendering/shader_preprocessor.h" #include "servers/rendering/shader_types.h" @@ -740,7 +741,8 @@ void TextShaderEditor::_notification(int p_what) { } void TextShaderEditor::_editor_settings_changed() { - if (!EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor") && + if (!EditorThemeManager::is_generated_theme_outdated() && + !EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor") && !EditorSettings::get_singleton()->check_changed_settings_in_group("text_editor")) { return; } |