diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 29580d2c9..f0ed1be3d 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -141,7 +141,7 @@ public class Base { if (OSUtils.isMacOS()) { System.setProperty("apple.laf.useScreenMenuBar", String.valueOf(!System.getProperty("os.version").startsWith("10.13") - || com.apple.eawt.Application.getApplication().isAboutMenuItemPresent())); + || isMacOsAboutMenuItemPresent())); ThinkDifferent.init(); } @@ -154,6 +154,11 @@ public class Base { } } + @SuppressWarnings("deprecation") + public static boolean isMacOsAboutMenuItemPresent() { + return com.apple.eawt.Application.getApplication().isAboutMenuItemPresent(); + } + static public void initLogger() { Handler consoleHandler = new ConsoleLogger(); consoleHandler.setLevel(Level.ALL);