Skip to content

Commit 8d84432

Browse files
committed
Prompt for sketchbook folder only if in GUI mode
1 parent fedc2b6 commit 8d84432

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/processing/app/Base.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,10 +1807,9 @@ public List<JMenu> getBoardsCustomMenus() {
18071807
}
18081808

18091809
public File getDefaultSketchbookFolderOrPromptForIt() {
1810-
18111810
File sketchbookFolder = BaseNoGui.getDefaultSketchbookFolder();
18121811

1813-
if (sketchbookFolder == null) {
1812+
if (sketchbookFolder == null && !isCommandLine()) {
18141813
sketchbookFolder = promptSketchbookLocation();
18151814
}
18161815

0 commit comments

Comments
 (0)