@@ -94,8 +94,6 @@ public class Base {
94
94
List <Editor > editors = Collections .synchronizedList (new ArrayList <Editor >());
95
95
Editor activeEditor ;
96
96
97
- static final String portableSketchbookFolder = "sketchbook" ;
98
-
99
97
static public void main (String args []) throws Exception {
100
98
BaseNoGui .initLogger ();
101
99
@@ -226,7 +224,7 @@ public Base(String[] args) throws Exception {
226
224
if (sketchbookPath == null ) {
227
225
File defaultFolder = getDefaultSketchbookFolder ();
228
226
if (BaseNoGui .getPortableFolder () != null )
229
- Preferences .set ("sketchbook.path" , portableSketchbookFolder );
227
+ Preferences .set ("sketchbook.path" , BaseNoGui . getPortableSketchbookFolder () );
230
228
else
231
229
Preferences .set ("sketchbook.path" , defaultFolder .getAbsolutePath ());
232
230
if (!defaultFolder .exists ()) {
@@ -1865,7 +1863,7 @@ static public File getPortableFolder() {
1865
1863
1866
1864
1867
1865
static public String getPortableSketchbookFolder () {
1868
- return portableSketchbookFolder ;
1866
+ return BaseNoGui . getPortableSketchbookFolder () ;
1869
1867
}
1870
1868
1871
1869
@@ -1891,7 +1889,7 @@ static public File getSketchbookHardwareFolder() {
1891
1889
1892
1890
protected File getDefaultSketchbookFolder () {
1893
1891
if (BaseNoGui .getPortableFolder () != null )
1894
- return new File (BaseNoGui .getPortableFolder (), portableSketchbookFolder );
1892
+ return new File (BaseNoGui .getPortableFolder (), BaseNoGui . getPortableSketchbookFolder () );
1895
1893
1896
1894
File sketchbookFolder = null ;
1897
1895
try {
0 commit comments