diff options
| author | Andreas Haas | 2018-03-01 21:45:04 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-03-28 23:13:46 +0200 |
| commit | 9cbcff4e919ce565b3c10ba34ab0bf7107bc8039 (patch) | |
| tree | 692baaae24b95a994b51d570b35a46617b830316 /editor/plugins/script_editor_plugin.cpp | |
| parent | 985b84689fea48860855cd141ca5493e16b209e9 (diff) | |
| download | godot-9cbcff4e919ce565b3c10ba34ab0bf7107bc8039.tar.gz godot-9cbcff4e919ce565b3c10ba34ab0bf7107bc8039.tar.zst godot-9cbcff4e919ce565b3c10ba34ab0bf7107bc8039.zip | |
ScriptEditor: Use EditorSettings instead of hardcoded values in constructor.
(cherry picked from commit 1cfc43421ee75304a63ef3905c0334f9d3faf302)
Diffstat (limited to '')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 3762a3519..4cd07fe0e 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2570,8 +2570,8 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) { waiting_update_names = false; pending_auto_reload = false; auto_reload_running_scripts = false; - members_overview_enabled = true; - help_overview_enabled = true; + members_overview_enabled = EditorSettings::get_singleton()->get("text_editor/open_scripts/show_members_overview"); + help_overview_enabled = EditorSettings::get_singleton()->get("text_editor/help/show_help_index"); editor = p_editor; VBoxContainer *main_container = memnew(VBoxContainer); @@ -2809,9 +2809,9 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) { //debugger_gui->hide(); edit_pass = 0; - trim_trailing_whitespace_on_save = false; - convert_indent_on_save = false; - use_space_indentation = false; + trim_trailing_whitespace_on_save = EditorSettings::get_singleton()->get("text_editor/files/trim_trailing_whitespace_on_save"); + convert_indent_on_save = EditorSettings::get_singleton()->get("text_editor/indent/convert_indent_on_save"); + use_space_indentation = EditorSettings::get_singleton()->get("text_editor/indent/type"); ScriptServer::edit_request_func = _open_script_request; |
