Skip to content

Commit

Permalink
Improved saving options (make use of EDT)
Browse files Browse the repository at this point in the history
  • Loading branch information
funfried committed Feb 16, 2024
1 parent 8d4c410 commit 47db43b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.beans.PropertyChangeSupport;
import java.util.prefs.Preferences;

import javax.swing.SwingUtilities;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

Expand Down Expand Up @@ -55,8 +56,10 @@ public void update() {
*/
@Override
public void applyChanges() {
createOrGetPanel().store();
changed = false;
SwingUtilities.invokeLater(() -> {
createOrGetPanel().store();
changed = false;
});
}

/**
Expand Down

0 comments on commit 47db43b

Please sign in to comment.