Changeset 18208 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java
- Timestamp:
- 2021-09-11T17:50:57+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java
r18113 r18208 19 19 import org.openstreetmap.josm.spi.preferences.Config; 20 20 import org.openstreetmap.josm.tools.PlatformManager; 21 import org.openstreetmap.josm.tools.Utils; 21 22 22 23 /** … … 98 99 public FileChooserManager(boolean open, String lastDirProperty, String defaultDir) { 99 100 this.open = open; 100 this.lastDirProperty = lastDirProperty == null || lastDirProperty.isEmpty() ? "lastDirectory" : lastDirProperty;101 this.lastDirProperty = Utils.isEmpty(lastDirProperty) ? "lastDirectory" : lastDirProperty; 101 102 this.curDir = Config.getPref().get(this.lastDirProperty).isEmpty() ? 102 defaultDir == null || defaultDir.isEmpty() ? "." : defaultDir103 Utils.isEmpty(defaultDir) ? "." : defaultDir 103 104 : Config.getPref().get(this.lastDirProperty); 104 105 }
Note:
See TracChangeset
for help on using the changeset viewer.
