Skip to content

Commit

Permalink
Fix wrong project opening in some situations, hidden nodes were not r…
Browse files Browse the repository at this point in the history
…eordered
  • Loading branch information
Zylann committed Dec 30, 2019
1 parent b8e8f49 commit 4c7d02d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions editor/project_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1409,9 +1409,7 @@ void ProjectList::sort_projects() {

for (int i = 0; i < _projects.size(); ++i) {
Item &item = _projects.write[i];
if (item.control->is_visible()) {
item.control->get_parent()->move_child(item.control, i);
}
item.control->get_parent()->move_child(item.control, i);
}

// Rewind the coroutine because order of projects changed
Expand Down

0 comments on commit 4c7d02d

Please sign in to comment.