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:
@@ -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