mirror of https://github.com/noisymime/Arduino.git
Prompt for sketchbook folder only if in GUI mode
This commit is contained in:
parent
fedc2b6cd2
commit
8d84432f71
|
@ -1807,10 +1807,9 @@ public class Base {
|
|||
}
|
||||
|
||||
public File getDefaultSketchbookFolderOrPromptForIt() {
|
||||
|
||||
File sketchbookFolder = BaseNoGui.getDefaultSketchbookFolder();
|
||||
|
||||
if (sketchbookFolder == null) {
|
||||
if (sketchbookFolder == null && !isCommandLine()) {
|
||||
sketchbookFolder = promptSketchbookLocation();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue