File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ static public void main(String args[]) throws Exception {
141141 if (OSUtils .isMacOS ()) {
142142 System .setProperty ("apple.laf.useScreenMenuBar" ,
143143 String .valueOf (!System .getProperty ("os.version" ).startsWith ("10.13" )
144- || com . apple . eawt . Application . getApplication (). isAboutMenuItemPresent ()));
144+ || isMacOsAboutMenuItemPresent ()));
145145
146146 ThinkDifferent .init ();
147147 }
@@ -154,6 +154,11 @@ static public void main(String args[]) throws Exception {
154154 }
155155 }
156156
157+ @ SuppressWarnings ("deprecation" )
158+ public static boolean isMacOsAboutMenuItemPresent () {
159+ return com .apple .eawt .Application .getApplication ().isAboutMenuItemPresent ();
160+ }
161+
157162 static public void initLogger () {
158163 Handler consoleHandler = new ConsoleLogger ();
159164 consoleHandler .setLevel (Level .ALL );
You can’t perform that action at this time.
0 commit comments