mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Merge pull request #38235 from BigRed-118/help_tabs_shuffle_fix
Fixed shuffling editor help tabs
This commit is contained in:
commit
4b5d4bbe48
@ -1866,6 +1866,10 @@ void ScriptEditor::_update_script_names() {
|
||||
if (new_cur_tab == -1 && sedata[i].index == cur_tab) {
|
||||
new_cur_tab = i;
|
||||
}
|
||||
// Update index of sd entries for sorted order
|
||||
_ScriptEditorItemData sd = sedata[i];
|
||||
sd.index = i;
|
||||
sedata.set(i, sd);
|
||||
}
|
||||
tab_container->set_current_tab(new_prev_tab);
|
||||
tab_container->set_current_tab(new_cur_tab);
|
||||
|
Loading…
Reference in New Issue
Block a user