Skip to content

Commit

Permalink
Merge pull request #253 from funfried/release/1.15.x
Browse files Browse the repository at this point in the history
Improved saving options (make use of EDT)
  • Loading branch information
funfried authored Feb 16, 2024
2 parents 556aae2 + 47db43b commit 5142780
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 5142780

Please sign in to comment.