mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
Give sense to isCommandLine()
method
This commit is contained in:
parent
b73bc92a5c
commit
fedc2b6cd2
@ -161,12 +161,6 @@ public class Base {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static protected void setCommandLine() {
|
|
||||||
commandLine = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static protected boolean isCommandLine() {
|
static protected boolean isCommandLine() {
|
||||||
return commandLine;
|
return commandLine;
|
||||||
}
|
}
|
||||||
@ -199,6 +193,7 @@ public class Base {
|
|||||||
|
|
||||||
CommandlineParser parser = new CommandlineParser(args);
|
CommandlineParser parser = new CommandlineParser(args);
|
||||||
parser.parseArgumentsPhase1();
|
parser.parseArgumentsPhase1();
|
||||||
|
commandLine = !parser.isGuiMode();
|
||||||
|
|
||||||
SplashScreenHelper splash;
|
SplashScreenHelper splash;
|
||||||
if (parser.isGuiMode()) {
|
if (parser.isGuiMode()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user