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 {
222
222
223
223
// If no path is set, get the default sketchbook folder for this platform
224
224
if (sketchbookPath == null ) {
225
- File defaultFolder = getDefaultSketchbookFolder ();
225
+ File defaultFolder = getDefaultSketchbookFolderOrPromptForIt ();
226
226
if (BaseNoGui .getPortableFolder () != null )
227
227
Preferences .set ("sketchbook.path" , BaseNoGui .getPortableSketchbookFolder ());
228
228
else
@@ -1896,6 +1896,14 @@ protected File getDefaultSketchbookFolder() {
1896
1896
sketchbookFolder = getPlatform ().getDefaultSketchbookFolder ();
1897
1897
} catch (Exception e ) { }
1898
1898
1899
+ return sketchbookFolder ;
1900
+ }
1901
+
1902
+
1903
+ protected File getDefaultSketchbookFolderOrPromptForIt () {
1904
+
1905
+ File sketchbookFolder = getDefaultSketchbookFolder ();
1906
+
1899
1907
if (sketchbookFolder == null ) {
1900
1908
sketchbookFolder = promptSketchbookLocation ();
1901
1909
}
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ protected void applyFrame() {
578
578
String newPath = sketchbookLocationField .getText ();
579
579
if (newPath .isEmpty ()) {
580
580
if (Base .getPortableFolder () == null )
581
- newPath = editor .base .getDefaultSketchbookFolder ().toString ();
581
+ newPath = editor .base .getDefaultSketchbookFolderOrPromptForIt ().toString ();
582
582
else
583
583
newPath = Base .getPortableSketchbookFolder ();
584
584
}
You can’t perform that action at this time.
0 commit comments