File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ public Base(String[] args) throws Exception {
222222
223223 // If no path is set, get the default sketchbook folder for this platform
224224 if (sketchbookPath == null ) {
225- File defaultFolder = getDefaultSketchbookFolder ();
225+ File defaultFolder = getDefaultSketchbookFolderOrPromptForIt ();
226226 if (BaseNoGui .getPortableFolder () != null )
227227 Preferences .set ("sketchbook.path" , BaseNoGui .getPortableSketchbookFolder ());
228228 else
@@ -1896,6 +1896,14 @@ protected File getDefaultSketchbookFolder() {
18961896 sketchbookFolder = getPlatform ().getDefaultSketchbookFolder ();
18971897 } catch (Exception e ) { }
18981898
1899+ return sketchbookFolder ;
1900+ }
1901+
1902+
1903+ protected File getDefaultSketchbookFolderOrPromptForIt () {
1904+
1905+ File sketchbookFolder = getDefaultSketchbookFolder ();
1906+
18991907 if (sketchbookFolder == null ) {
19001908 sketchbookFolder = promptSketchbookLocation ();
19011909 }
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ protected void applyFrame() {
578578 String newPath = sketchbookLocationField .getText ();
579579 if (newPath .isEmpty ()) {
580580 if (Base .getPortableFolder () == null )
581- newPath = editor .base .getDefaultSketchbookFolder ().toString ();
581+ newPath = editor .base .getDefaultSketchbookFolderOrPromptForIt ().toString ();
582582 else
583583 newPath = Base .getPortableSketchbookFolder ();
584584 }
You can’t perform that action at this time.
0 commit comments