Fix wrong project opening in some situations, hidden nodes were not reordered
This commit is contained in:
parent
b8e8f4942d
commit
4c7d02dea1
1 changed files with 1 additions and 3 deletions
|
@ -1409,10 +1409,8 @@ void ProjectList::sort_projects() {
|
||||||
|
|
||||||
for (int i = 0; i < _projects.size(); ++i) {
|
for (int i = 0; i < _projects.size(); ++i) {
|
||||||
Item &item = _projects.write[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
|
// Rewind the coroutine because order of projects changed
|
||||||
update_icons_async();
|
update_icons_async();
|
||||||
|
|
Loading…
Reference in a new issue