Remove cells from selectedThumbCells, which are not visible anymore

This commit is contained in:
0xb00bface 2021-08-27 12:52:10 +02:00
parent b1f3390a69
commit 79a16674f2
1 changed files with 3 additions and 0 deletions

View File

@ -363,6 +363,9 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
// now update existing cells and create new ones models, which are new in the update
createOrUpdateModelCells(nodes, models);
// remove cells from selectedThumbCells, which are not visible anymore
selectedThumbCells.retainAll(nodes);
// reapply the filter
filteredThumbCells.clear();
filter();