diff options
author | kobewi <kobewi4e@gmail.com> | 2022-11-23 00:14:08 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-02-19 21:34:45 +0100 |
commit | a031911c828da4f6f93950afa0688ac062bc96bd (patch) | |
tree | 67c9e6adbc28186ae60bff4afcb2ba2ece47bd59 /editor/plugins/script_editor_plugin.cpp | |
parent | 0246230e2b7c542f003c3c53cffc22dedc0c9c50 (diff) | |
download | redot-engine-a031911c828da4f6f93950afa0688ac062bc96bd.tar.gz |
Use check_changed_settings_in_group() everywhere
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index e6a1b76c78..d1d858b4db 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2779,6 +2779,11 @@ void ScriptEditor::_save_layout() { } void ScriptEditor::_editor_settings_changed() { + if (!EditorSettings::get_singleton()->check_changed_settings_in_group("text_editor") && + !EditorSettings::get_singleton()->check_changed_settings_in_group("docks/filesystem")) { + return; + } + textfile_extensions.clear(); const Vector<String> textfile_ext = ((String)(EDITOR_GET("docks/filesystem/textfile_extensions"))).split(",", false); for (const String &E : textfile_ext) { |