Fix preferences file path in preferences window

This commit is contained in:
Federico Bond
2014-08-22 01:07:52 -03:00
parent a7bd60061a
commit e7a973ec4c
2 changed files with 6 additions and 2 deletions

View File

@@ -151,6 +151,10 @@ public class Preferences {
}
}
static public File getPreferencesFile() {
return preferencesFile;
}
// .................................................................
@@ -382,4 +386,4 @@ public class Preferences {
static protected void setSketchbookPath(String path) {
set("sketchbook.path.three", path); //$NON-NLS-1$
}
}
}

View File

@@ -526,7 +526,7 @@ public class PreferencesFrame {
right = Math.max(right, left + d.width);
top += d.height; // + GUI_SMALL;
label = new JLabel(Preferences.getSketchbookPath());
label = new JLabel(Preferences.getPreferencesFile().getAbsolutePath());
final JLabel clickable = label;
label.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent e) {