mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
misc: code formatting + readme update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user