You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Make sure auto bracket completion setting always works, closes #2332
This commit is contained in:
@@ -2043,6 +2043,15 @@ void ScriptEditor::_editor_settings_changed() {
|
|||||||
autosave_timer->stop();
|
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() {
|
void ScriptEditor::_autosave_scripts() {
|
||||||
|
|||||||
Reference in New Issue
Block a user