Skip to content

Commit

Permalink
Merge pull request #78604 from KoBeWi/gotta_close_fast
Browse files Browse the repository at this point in the history
Speed up closing multiple scripts
  • Loading branch information
YuriSizov committed Jul 12, 2023
2 parents 8a19e21 + 9a302e3 commit c457480
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions editor/plugins/script_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -846,13 +846,14 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) {
_update_selected_editor_menu();
}

_update_history_arrows();

_update_script_names();
_update_members_overview_visibility();
_update_help_overview_visibility();
_save_layout();
_update_find_replace_bar();
if (script_close_queue.is_empty()) {
_update_history_arrows();
_update_script_names();
_update_members_overview_visibility();
_update_help_overview_visibility();
_save_layout();
_update_find_replace_bar();
}
}

void ScriptEditor::_close_current_tab(bool p_save) {
Expand Down

0 comments on commit c457480

Please sign in to comment.