Prompt for sketchbook folder only if in GUI mode

This commit is contained in:
Cristian Maglie 2016-11-07 16:51:24 +01:00
parent fedc2b6cd2
commit 8d84432f71
1 changed files with 1 additions and 2 deletions

View File

@ -1807,10 +1807,9 @@ public class Base {
}
public File getDefaultSketchbookFolderOrPromptForIt() {
File sketchbookFolder = BaseNoGui.getDefaultSketchbookFolder();
if (sketchbookFolder == null) {
if (sketchbookFolder == null && !isCommandLine()) {
sketchbookFolder = promptSketchbookLocation();
}