mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Remove duplicate editor settings definitions
This commit is contained in:
parent
92615be68c
commit
2057ea2883
20 changed files with 48 additions and 51 deletions
|
|
@ -1046,7 +1046,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/behavior/files/auto_reload_scripts_on_external_change", false));
|
||||
bool use_autoreload = bool(EDITOR_GET("text_editor/behavior/files/auto_reload_scripts_on_external_change"));
|
||||
|
||||
for (int i = 0; i < tab_container->get_tab_count(); i++) {
|
||||
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
|
||||
|
|
@ -2723,7 +2723,7 @@ void ScriptEditor::_editor_settings_changed() {
|
|||
_update_script_colors();
|
||||
_update_script_names();
|
||||
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_DEF("text_editor/behavior/files/auto_reload_and_parse_scripts_on_save", true));
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_GET("text_editor/behavior/files/auto_reload_and_parse_scripts_on_save"));
|
||||
}
|
||||
|
||||
void ScriptEditor::_filesystem_changed() {
|
||||
|
|
@ -3125,7 +3125,7 @@ void ScriptEditor::_make_script_list_context_menu() {
|
|||
}
|
||||
|
||||
void ScriptEditor::set_window_layout(Ref<ConfigFile> p_layout) {
|
||||
if (!bool(EDITOR_DEF("text_editor/behavior/files/restore_scripts_on_load", true))) {
|
||||
if (!bool(EDITOR_GET("text_editor/behavior/files/restore_scripts_on_load"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -4039,7 +4039,7 @@ ScriptEditorPlugin::ScriptEditorPlugin() {
|
|||
|
||||
script_editor->hide();
|
||||
|
||||
EDITOR_DEF("text_editor/behavior/files/auto_reload_scripts_on_external_change", true);
|
||||
EDITOR_GET("text_editor/behavior/files/auto_reload_scripts_on_external_change");
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_DEF("text_editor/behavior/files/auto_reload_and_parse_scripts_on_save", true));
|
||||
EDITOR_DEF("text_editor/behavior/files/open_dominant_script_on_scene_change", true);
|
||||
EDITOR_DEF("text_editor/external/use_external_editor", false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue