summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-01 09:52:01 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-01 09:52:01 -0300
commitd014518a1a9bcb2ba70a4a332af10ab66bbf2e26 (patch)
treee2fe3ec91486ebdae9e1c0ede55487499ee3a6f4 /tools/editor
parent7d0894e9259b079b0c27f4c516a80e7a9a659738 (diff)
Make sure auto bracket completion setting always works, closes #2332
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp
index 59f5d89073..646c078bc2 100644
--- a/tools/editor/plugins/script_editor_plugin.cpp
+++ b/tools/editor/plugins/script_editor_plugin.cpp
@@ -2043,6 +2043,15 @@ void ScriptEditor::_editor_settings_changed() {
autosave_timer->stop();
}
+ for(int i=0;i<tab_container->get_child_count();i++) {
+
+ ScriptTextEditor *ste = tab_container->get_child(i)->cast_to<ScriptTextEditor>();
+ if (!ste)
+ continue;
+
+ ste->get_text_edit()->set_auto_brace_completion(EditorSettings::get_singleton()->get("text_editor/auto_brace_complete"));
+ }
+
}
void ScriptEditor::_autosave_scripts() {