Changeset 17181 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-10-12T22:43:40+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AutosaveTask.java
r17093 r17181 17 17 import java.util.Arrays; 18 18 import java.util.Collections; 19 import java.util.Comparator; 19 20 import java.util.Date; 20 21 import java.util.Deque; … … 150 151 File[] files = deletedLayersDir.listFiles(); 151 152 if (files != null) { 152 // FIXME: sort by mtime 153 try { 154 Arrays.sort(files, Comparator.comparingLong(File::lastModified)); 155 } catch (Exception e) { 156 Logging.error(e); 157 } 153 158 deletedLayers.addAll(Arrays.asList(files)); 154 159 }
Note:
See TracChangeset
for help on using the changeset viewer.