Skip to content

Commit 4f12d18

Browse files
committed
Fix preferences file path in preferences window
1 parent e1547c9 commit 4f12d18

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/src/processing/app/Preferences.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ static public void init() {
151151
}
152152
}
153153

154+
static public File getPreferencesFile() {
155+
return preferencesFile;
156+
}
157+
154158

155159
// .................................................................
156160

@@ -382,4 +386,4 @@ static protected String getSketchbookPath() {
382386
static protected void setSketchbookPath(String path) {
383387
set("sketchbook.path.three", path); //$NON-NLS-1$
384388
}
385-
}
389+
}

app/src/processing/app/PreferencesFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ public void stateChanged(ChangeEvent e) {
526526
right = Math.max(right, left + d.width);
527527
top += d.height; // + GUI_SMALL;
528528

529-
label = new JLabel(Preferences.getSketchbookPath());
529+
label = new JLabel(Preferences.getPreferencesFile().getAbsolutePath());
530530
final JLabel clickable = label;
531531
label.addMouseListener(new MouseAdapter() {
532532
public void mousePressed(MouseEvent e) {

0 commit comments

Comments
 (0)