1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Merge pull request #78604 from KoBeWi/gotta_close_fast

Speed up closing multiple scripts
This commit is contained in:
Yuri Sizov
2023-07-12 17:16:24 +02:00

View File

@@ -846,14 +846,15 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) {
_update_selected_editor_menu(); _update_selected_editor_menu();
} }
if (script_close_queue.is_empty()) {
_update_history_arrows(); _update_history_arrows();
_update_script_names(); _update_script_names();
_update_members_overview_visibility(); _update_members_overview_visibility();
_update_help_overview_visibility(); _update_help_overview_visibility();
_save_layout(); _save_layout();
_update_find_replace_bar(); _update_find_replace_bar();
} }
}
void ScriptEditor::_close_current_tab(bool p_save) { void ScriptEditor::_close_current_tab(bool p_save) {
_close_tab(tab_container->get_current_tab(), p_save); _close_tab(tab_container->get_current_tab(), p_save);