File tree 1 file changed +6
-1
lines changed
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 {
141
141
if (OSUtils .isMacOS ()) {
142
142
System .setProperty ("apple.laf.useScreenMenuBar" ,
143
143
String .valueOf (!System .getProperty ("os.version" ).startsWith ("10.13" )
144
- || com . apple . eawt . Application . getApplication (). isAboutMenuItemPresent ()));
144
+ || isMacOsAboutMenuItemPresent ()));
145
145
146
146
ThinkDifferent .init ();
147
147
}
@@ -154,6 +154,11 @@ static public void main(String args[]) throws Exception {
154
154
}
155
155
}
156
156
157
+ @ SuppressWarnings ("deprecation" )
158
+ public static boolean isMacOsAboutMenuItemPresent () {
159
+ return com .apple .eawt .Application .getApplication ().isAboutMenuItemPresent ();
160
+ }
161
+
157
162
static public void initLogger () {
158
163
Handler consoleHandler = new ConsoleLogger ();
159
164
consoleHandler .setLevel (Level .ALL );
You can’t perform that action at this time.
0 commit comments