Skip to content

Commit d711f10

Browse files
committed
Fix canceling of "automatically start" dialog on macOS
Closes #1276
1 parent 29b75d9 commit d711f10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qz/ui/tray/AWTMenuWrapper.java

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ private void wrapItemListeners(final JMenuItem item) {
7676
private void wrapState(JMenuItem item) {
7777
if (this.item instanceof CheckboxMenuItem && item instanceof JCheckBoxMenuItem) {
7878
((CheckboxMenuItem)this.item).setState(((JCheckBoxMenuItem)item).getState());
79+
item.addChangeListener(e -> {
80+
((CheckboxMenuItem)this.item).setState(((JCheckBoxMenuItem)item).getState());
81+
});
7982
}
8083
}
8184

0 commit comments

Comments
 (0)