Changeset 12846 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java
- Timestamp:
- 2017-09-13T23:24:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java
r9991 r12846 15 15 import org.openstreetmap.josm.actions.SaveActionBase; 16 16 import org.openstreetmap.josm.data.preferences.BooleanProperty; 17 import org.openstreetmap.josm.spi.preferences.Config; 17 18 18 19 /** … … 90 91 this.open = open; 91 92 this.lastDirProperty = lastDirProperty == null || lastDirProperty.isEmpty() ? "lastDirectory" : lastDirProperty; 92 this.curDir = Main.pref.get(this.lastDirProperty).isEmpty() ?93 this.curDir = Config.getPref().get(this.lastDirProperty).isEmpty() ? 93 94 defaultDir == null || defaultDir.isEmpty() ? "." : defaultDir 94 : Main.pref.get(this.lastDirProperty);95 : Config.getPref().get(this.lastDirProperty); 95 96 } 96 97 … … 345 346 346 347 if (!fc.getCurrentDirectory().getAbsolutePath().equals(curDir)) { 347 Main.pref.put(lastDirProperty, fc.getCurrentDirectory().getAbsolutePath());348 Config.getPref().put(lastDirProperty, fc.getCurrentDirectory().getAbsolutePath()); 348 349 } 349 350
Note:
See TracChangeset
for help on using the changeset viewer.