mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Prevent sort options being duplicated
This commit is contained in:
@@ -183,6 +183,10 @@ public abstract class ItemManager<T extends InventoryItem> extends FContainer im
|
|||||||
});
|
});
|
||||||
|
|
||||||
sortCols.clear();
|
sortCols.clear();
|
||||||
|
if (cbxSortOptions != null) {
|
||||||
|
cbxSortOptions.setChangedHandler(null);
|
||||||
|
cbxSortOptions.removeAllItems();
|
||||||
|
}
|
||||||
|
|
||||||
int modelIndex = 0;
|
int modelIndex = 0;
|
||||||
for (final ItemColumn col : cols) {
|
for (final ItemColumn col : cols) {
|
||||||
|
|||||||
Reference in New Issue
Block a user