Skip to content

Commit ce4ec3b

Browse files
committed
Moved sketchbook override
1 parent 8660f0a commit ce4ec3b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/src/processing/app/Base.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,13 +2263,14 @@ static public File getToolsFolder() {
22632263

22642264

22652265
static public void locateSketchbookFolder() {
2266-
// If a value is at least set, first check to see if the folder exists.
2267-
// If it doesn't, warn the user that the sketchbook folder is being reset.
2268-
String sketchbookPath = Preferences.getSketchbookPath();
22692266
var sketchbookPathOverride = System.getProperty("processing.sketchbook.folder");
22702267
if (sketchbookPathOverride != null && !sketchbookPathOverride.isEmpty()) {
2271-
sketchbookPath = sketchbookPathOverride;
2268+
sketchbookFolder = new File(sketchbookPathOverride);
2269+
return;
22722270
}
2271+
// If a value is at least set, first check to see if the folder exists.
2272+
// If it doesn't, warn the user that the sketchbook folder is being reset.
2273+
String sketchbookPath = Preferences.getSketchbookPath();
22732274
if (sketchbookPath != null) {
22742275
sketchbookFolder = new File(sketchbookPath);
22752276
if (!sketchbookFolder.exists()) {

0 commit comments

Comments
 (0)