Skip to content

Commit

Permalink
Bug Fix: Fixed settings being saved while columns was being moved (no…
Browse files Browse the repository at this point in the history
…w only save when the move is completed)
  • Loading branch information
GoldenGnu committed Nov 4, 2021
1 parent 41ac65c commit afc9c25
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -300,16 +300,15 @@ protected void updateColumns() {
dateColumns.add(object);
}
}
jColumn.setActionCommand("comboBoxChanged");
jColumn.setModel(new ListComboBoxModel<>(allColumns));
if (allColumns.contains(selectedItem)) {
jColumn.setSelectedItem(selectedItem);
jColumn.setActionCommand(FilterPanelAction.FILTER.name()); //After: Do not refilter
} else if (!allColumns.isEmpty()) {
jColumn.setActionCommand(FilterPanelAction.FILTER.name());
jColumn.setActionCommand(FilterPanelAction.FILTER.name()); //Before: refilter
jColumn.setSelectedIndex(0);
} else {
jColumn.setActionCommand(FilterPanelAction.FILTER.name());
}

}

boolean isAnd() {
Expand Down Expand Up @@ -601,6 +600,7 @@ private Color getGroupColor() {
}

private void groupChanged() {
System.out.println("groupChanged");
refilter();
if (!loading) {
if (gui.fade(FilterPanel.this)) {
Expand Down Expand Up @@ -639,6 +639,7 @@ public void keyTyped(final KeyEvent e) { }
@Override
public void keyPressed(final KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_ENTER) {
System.out.println("keyPressed");
refilter();
}
}
Expand Down Expand Up @@ -672,6 +673,7 @@ public void actionPerformed(final ActionEvent e) {

@Override
public void dateChanged(DateChangeEvent e) {
System.out.println("dateChanged");
refilter();
}

Expand Down

0 comments on commit afc9c25

Please sign in to comment.