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:
parent
fedc2b6cd2
commit
8d84432f71
@ -1807,10 +1807,9 @@ public class Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public File getDefaultSketchbookFolderOrPromptForIt() {
|
public File getDefaultSketchbookFolderOrPromptForIt() {
|
||||||
|
|
||||||
File sketchbookFolder = BaseNoGui.getDefaultSketchbookFolder();
|
File sketchbookFolder = BaseNoGui.getDefaultSketchbookFolder();
|
||||||
|
|
||||||
if (sketchbookFolder == null) {
|
if (sketchbookFolder == null && !isCommandLine()) {
|
||||||
sketchbookFolder = promptSketchbookLocation();
|
sketchbookFolder = promptSketchbookLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user