diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index 5f8a26ecc654..362524b83fa8 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -1849,7 +1849,6 @@ void ScriptEditor::_notification(int p_what) { // Can't set own styles in NOTIFICATION_THEME_CHANGED, so for now this will do. add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SNAME("ScriptEditorPanel"), EditorStringName(EditorStyles))); - get_tree()->connect("tree_changed", callable_mp(this, &ScriptEditor::_tree_changed)); InspectorDock::get_singleton()->connect("request_help", callable_mp(this, &ScriptEditor::_help_class_open)); EditorNode::get_singleton()->connect("request_help_search", callable_mp(this, &ScriptEditor::_help_search)); EditorNode::get_singleton()->connect("scene_closed", callable_mp(this, &ScriptEditor::_close_builtin_scripts_from_scene)); @@ -2454,12 +2453,8 @@ void ScriptEditor::_update_script_names() { } } - if (!waiting_update_names) { - _update_members_overview(); - _update_help_overview(); - } else { - waiting_update_names = false; - } + _update_members_overview(); + _update_help_overview(); _update_members_overview_visibility(); _update_help_overview_visibility(); _update_script_colors(); @@ -3187,15 +3182,6 @@ void ScriptEditor::_update_autosave_timer() { } } -void ScriptEditor::_tree_changed() { - if (waiting_update_names) { - return; - } - - waiting_update_names = true; - callable_mp(this, &ScriptEditor::_update_script_names).call_deferred(); -} - void ScriptEditor::_split_dragged(float) { _save_layout(); } @@ -4214,7 +4200,6 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) { script_editor_cache->load(EditorPaths::get_singleton()->get_project_settings_dir().path_join("script_editor_cache.cfg")); restoring_layout = false; - waiting_update_names = false; pending_auto_reload = false; auto_reload_running_scripts = true; external_editor_active = false; diff --git a/editor/script/script_editor_plugin.h b/editor/script/script_editor_plugin.h index 2a7f1f14a04a..6327d1443fc5 100644 --- a/editor/script/script_editor_plugin.h +++ b/editor/script/script_editor_plugin.h @@ -504,8 +504,6 @@ class ScriptEditor : public PanelContainer { void _find_scripts(Node *p_base, Node *p_current, HashSet> &used); - void _tree_changed(); - void _split_dragged(float); Variant get_drag_data_fw(const Point2 &p_point, Control *p_from); @@ -523,7 +521,6 @@ class ScriptEditor : public PanelContainer { void _history_forward(); void _history_back(); - bool waiting_update_names; bool lock_history = false; void _help_class_open(const String &p_class);