Skip to content

Commit

Permalink
Some menus are freezing #104
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Oct 31, 2019
1 parent 723a0ec commit 4017a8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void popupMenuCanceled() {

public void addPopupMenuListener() {
// #WEA-6 - workaround, PopupMenuListener doesn't work on Mac in the top bar with native look and feel
if (Boolean.TRUE.toString().equals(System.getProperty("apple.laf.useScreenMenuBar", Boolean.FALSE.toString()))) { //$NON-NLS-1$
if (AppProperties.OPERATING_SYSTEM.startsWith("mac") && Boolean.TRUE.toString().equals(System.getProperty("apple.laf.useScreenMenuBar", Boolean.FALSE.toString()))) { //$NON-NLS-1$
this.addChangeListener(e -> {
if (DynamicMenu.this.isSelected()) {
DynamicMenu.this.removeAll();
Expand Down

0 comments on commit 4017a8b

Please sign in to comment.