Improve how highlighted index works post-filtering

This commit is contained in:
Robert McRackan 2022-05-17 12:59:30 -04:00
parent 2dc73acd20
commit c7c0d1632e

View File

@ -75,8 +75,10 @@ namespace LibationWinForms
{
if (FilterString is null) return;
int visibleCount = Items.Count;
for (int i = 0; i < FilterRemoved.Count; i++)
base.InsertItem(i, FilterRemoved[i]);
base.InsertItem(i + visibleCount, FilterRemoved[i]);
OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
FilterRemoved.Clear();