Improve how highlighted index works post-filtering
This commit is contained in:
parent
2dc73acd20
commit
c7c0d1632e
@ -75,8 +75,10 @@ namespace LibationWinForms
|
|||||||
{
|
{
|
||||||
if (FilterString is null) return;
|
if (FilterString is null) return;
|
||||||
|
|
||||||
|
int visibleCount = Items.Count;
|
||||||
for (int i = 0; i < FilterRemoved.Count; i++)
|
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();
|
FilterRemoved.Clear();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user