C2023-007: Annotation search, when remove annotation, move to next item in list (not previous)

This commit is contained in:
Kathy Ruffing 2023-04-24 14:28:38 +00:00
parent c1904169f5
commit 344f958d9c

View File

@ -947,7 +947,9 @@ namespace Volian.Controls.Library
DisplayResults();
UpdatedAnnotationList = true;
lbSrchResults.SelectedIndex = curindx < 0 ? -1 : curindx - 1;
// C2023-007: C2023-005 reset position after delete but positioned to item before deleted item, modified the
// list reset to position after deleted item
lbSrchResults.SelectedIndex = curindx < 0 ? -1 : curindx == lbSrchResults.Items.Count ? curindx - 1 : curindx;
UpdatedAnnotationList = false;
}
private bool UpdatedAnnotationList = false;