Skip to content

Commit fedc2b6

Browse files
committed
Give sense to isCommandLine() method
1 parent b73bc92 commit fedc2b6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/src/processing/app/Base.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,6 @@ static public void initLogger() {
161161

162162
}
163163

164-
165-
static protected void setCommandLine() {
166-
commandLine = true;
167-
}
168-
169-
170164
static protected boolean isCommandLine() {
171165
return commandLine;
172166
}
@@ -199,6 +193,7 @@ public Base(String[] args) throws Exception {
199193

200194
CommandlineParser parser = new CommandlineParser(args);
201195
parser.parseArgumentsPhase1();
196+
commandLine = !parser.isGuiMode();
202197

203198
SplashScreenHelper splash;
204199
if (parser.isGuiMode()) {

0 commit comments

Comments
 (0)