prevent empty list crash on windows (fixes #93) (#94)

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
cajun
2024-09-28 14:23:46 -05:00
committed by GitHub
parent 96fd385962
commit 8709e69bcc
+1 -1
View File
@@ -180,10 +180,10 @@ void ItemList::refreshList(bool refresh_current_only) {
// refresh
// Note: Freeze/Thaw makes flicker worse
long item_count = (long)sorted_list.size();
SetItemCount(item_count);
if (item_count == 0) {
Refresh();
} else {
SetItemCount(item_count);
// (re)select current item
findSelectedItemPos();
focusNone();