Improve how highlighted index works post-filtering
This commit is contained in:
parent
2dc73acd20
commit
c7c0d1632e
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue