mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-21 10:52:14 +01:00
Silenced function deprecated warning
This commit is contained in:
parent
bc54dd8ef5
commit
a82f9a0e74
@ -141,7 +141,7 @@ public class Base {
|
|||||||
if (OSUtils.isMacOS()) {
|
if (OSUtils.isMacOS()) {
|
||||||
System.setProperty("apple.laf.useScreenMenuBar",
|
System.setProperty("apple.laf.useScreenMenuBar",
|
||||||
String.valueOf(!System.getProperty("os.version").startsWith("10.13")
|
String.valueOf(!System.getProperty("os.version").startsWith("10.13")
|
||||||
|| com.apple.eawt.Application.getApplication().isAboutMenuItemPresent()));
|
|| isMacOsAboutMenuItemPresent()));
|
||||||
|
|
||||||
ThinkDifferent.init();
|
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() {
|
static public void initLogger() {
|
||||||
Handler consoleHandler = new ConsoleLogger();
|
Handler consoleHandler = new ConsoleLogger();
|
||||||
consoleHandler.setLevel(Level.ALL);
|
consoleHandler.setLevel(Level.ALL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user