From 4878b1c8d4234bbf1865f96f416cf6bf7c85ef8c Mon Sep 17 00:00:00 2001 From: GenevensiS <66968533+G-e-n-e-v-e-n-s-i-S@users.noreply.github.com> Date: Sat, 28 Sep 2024 01:20:13 +0200 Subject: [PATCH] Update item_list.cpp --- src/gui/control/item_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/control/item_list.cpp b/src/gui/control/item_list.cpp index 83dc0437..e3521003 100644 --- a/src/gui/control/item_list.cpp +++ b/src/gui/control/item_list.cpp @@ -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();