Skip to content

Commit

Permalink
Fix canceling of "automatically start" dialog on macOS
Browse files Browse the repository at this point in the history
Closes #1276
  • Loading branch information
tresf committed Jul 15, 2024
1 parent 29b75d9 commit d711f10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qz/ui/tray/AWTMenuWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ private void wrapItemListeners(final JMenuItem item) {
private void wrapState(JMenuItem item) {
if (this.item instanceof CheckboxMenuItem && item instanceof JCheckBoxMenuItem) {
((CheckboxMenuItem)this.item).setState(((JCheckBoxMenuItem)item).getState());
item.addChangeListener(e -> {
((CheckboxMenuItem)this.item).setState(((JCheckBoxMenuItem)item).getState());
});
}
}

Expand Down

0 comments on commit d711f10

Please sign in to comment.