mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Merge branch 'deck-editor-unique-filter' into 'master'
Deck editor filters bug See merge request core-developers/forge!2214
This commit is contained in:
@@ -77,6 +77,7 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
|
||||
private Point hoverScrollPos;
|
||||
private ItemInfo hoveredItem;
|
||||
private ItemInfo focalItem;
|
||||
private boolean panelOptionsCreated = false;
|
||||
|
||||
private final List<ItemInfo> orderedItems = new ArrayList<>();
|
||||
private final List<Group> groups = new ArrayList<>();
|
||||
@@ -337,7 +338,12 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
|
||||
|
||||
@Override
|
||||
public void setup(ItemManagerConfig config, Map<ColumnDef, ItemTableColumn> colOverrides) {
|
||||
// if this is the first setup call, panel options will be added to UI components
|
||||
if (!this.panelOptionsCreated){
|
||||
setPanelOptions(config.getShowUniqueCardsOption());
|
||||
this.panelOptionsCreated = true;
|
||||
}
|
||||
// set status of components in the panel
|
||||
setGroupBy(config.getGroupBy(), true);
|
||||
setPileBy(config.getPileBy(), true);
|
||||
setColumnCount(config.getImageColumnCount(), true);
|
||||
|
||||
Reference in New Issue
Block a user