misc: code formatting + readme update

This commit is contained in:
Brendan Hagan
2022-12-30 22:12:44 -05:00
parent e4cf30cc5b
commit 2770b07668
3 changed files with 8 additions and 15 deletions
+6 -6
View File
@@ -183,12 +183,12 @@ void ItemList::refreshList(bool refresh_current_only) {
if (item_count == 0) {
Refresh();
} else {
SetItemCount(item_count);
// (re)select current item
findSelectedItemPos();
focusNone();
focusSelectedItem(true);
// refresh items
SetItemCount(item_count);
// (re)select current item
findSelectedItemPos();
focusNone();
focusSelectedItem(true);
// refresh items
RefreshItems(0, item_count - 1);
}