From fedc2b6cd21abf88eb6ac1246fddb5cf537b5319 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 7 Nov 2016 16:48:48 +0100 Subject: [PATCH] Give sense to `isCommandLine()` method --- app/src/processing/app/Base.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 93098239e..5aaa7242f 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -161,12 +161,6 @@ public class Base { } - - static protected void setCommandLine() { - commandLine = true; - } - - static protected boolean isCommandLine() { return commandLine; } @@ -199,6 +193,7 @@ public class Base { CommandlineParser parser = new CommandlineParser(args); parser.parseArgumentsPhase1(); + commandLine = !parser.isGuiMode(); SplashScreenHelper splash; if (parser.isGuiMode()) {