Update item_list.cpp

This commit is contained in:
GenevensiS
2024-09-28 01:20:13 +02:00
parent 96fd385962
commit 4878b1c8d4
+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();