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:
|
Features:
|
||||||
|
|
||||||
Bug fixes:
|
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
|
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() {
|
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();
|
updateScrollbar();
|
||||||
Refresh(false);
|
Refresh(false);
|
||||||
InvalidateBestSize();
|
InvalidateBestSize();
|
||||||
|
|||||||
@@ -183,12 +183,12 @@ void ItemList::refreshList(bool refresh_current_only) {
|
|||||||
if (item_count == 0) {
|
if (item_count == 0) {
|
||||||
Refresh();
|
Refresh();
|
||||||
} else {
|
} else {
|
||||||
SetItemCount(item_count);
|
SetItemCount(item_count);
|
||||||
// (re)select current item
|
// (re)select current item
|
||||||
findSelectedItemPos();
|
findSelectedItemPos();
|
||||||
focusNone();
|
focusNone();
|
||||||
focusSelectedItem(true);
|
focusSelectedItem(true);
|
||||||
// refresh items
|
// refresh items
|
||||||
|
|
||||||
RefreshItems(0, item_count - 1);
|
RefreshItems(0, item_count - 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user