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
+2
View File
@@ -8,6 +8,8 @@ HEAD: new items added as changes are made
Features:
Bug fixes:
* Fixed scrolled widgets not scrolling fully (or at all) on Linux (@llemoi, haganbmj#54)
* Fixed crash when 0 keywords match filter string in keyword panel (@llemoi, haganbmj#57)
------------------------------------------------------------------------------
version 2.4.0 (Unofficial), 2022-11-19
-9
View File
@@ -72,15 +72,6 @@ void GalleryList::select(size_t item, size_t subcolumn, bool event) {
}
void GalleryList::update() {
// ensure selection is visible
/*SubColumn col = subcolumns[active_subcolumn];
if (col.selection != NO_SELECTION) {
if (itemStart(col.selection) < visible_start) {
scrollTo(itemStart(col.selection), false);
} else if (itemEnd(col.selection) > visibleEnd()) {
scrollTo(itemEnd(col.selection) + visible_start - visibleEnd(), false);
}
}*/
updateScrollbar();
Refresh(false);
InvalidateBestSize();
+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);
}