File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 ()) {
You can’t perform that action at this time.
0 commit comments