Skip to content

Commit

Permalink
Merge branch 'main' into asset-log
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenGnu committed Oct 29, 2024
2 parents 7c7b061 + 70be591 commit fe847ba
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,16 @@ protected JViewport getParentViewport() {
}
}

@Override
protected void expandSeparator(final boolean expand) {
super.expandSeparator(expand);
StockpileItem currentItem = (StockpileItem) currentSeparator.first();
if (currentItem == null) { // handle 'late' rendering calls after this separator is invalid
return;
}
Settings.get().getStockpileGroupSettings().setStockpileExpanded(currentItem.getStockpile(), expand);
}

private class ListenerClass implements HierarchyListener, AdjustmentListener, ActionListener, CellEditorListener, KeyListener {

private boolean update = true;
Expand Down

0 comments on commit fe847ba

Please sign in to comment.