1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

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

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();
}