mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 14:41:07 +00:00
Remove duplicate editor settings definitions
This commit is contained in:
parent
ad76e071fa
commit
d088128b43
20 changed files with 50 additions and 52 deletions
|
|
@ -825,7 +825,7 @@ bool ScriptEditor::_test_script_times_on_disk(RES p_for_script) {
|
|||
|
||||
bool need_ask = false;
|
||||
bool need_reload = false;
|
||||
bool use_autoreload = bool(EDITOR_DEF("text_editor/files/auto_reload_scripts_on_external_change", false));
|
||||
bool use_autoreload = EDITOR_GET("text_editor/files/auto_reload_scripts_on_external_change");
|
||||
|
||||
for (int i = 0; i < tab_container->get_child_count(); i++) {
|
||||
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_child(i));
|
||||
|
|
@ -2419,7 +2419,7 @@ void ScriptEditor::_editor_settings_changed() {
|
|||
_update_script_colors();
|
||||
_update_script_names();
|
||||
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_DEF("text_editor/files/auto_reload_and_parse_scripts_on_save", true));
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_GET("text_editor/files/auto_reload_and_parse_scripts_on_save"));
|
||||
}
|
||||
|
||||
void ScriptEditor::_autosave_scripts() {
|
||||
|
|
@ -3655,8 +3655,7 @@ ScriptEditorPlugin::ScriptEditorPlugin(EditorNode *p_node) {
|
|||
|
||||
script_editor->hide();
|
||||
|
||||
EDITOR_DEF("text_editor/files/auto_reload_scripts_on_external_change", true);
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_DEF("text_editor/files/auto_reload_and_parse_scripts_on_save", true));
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_GET("text_editor/files/auto_reload_and_parse_scripts_on_save"));
|
||||
EDITOR_DEF("text_editor/files/open_dominant_script_on_scene_change", true);
|
||||
EDITOR_DEF("text_editor/external/use_external_editor", false);
|
||||
EDITOR_DEF("text_editor/external/exec_path", "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue