Changeset 4428 in josm
- Timestamp:
- 2011-09-16T13:06:41+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r4240 r4428 38 38 39 39 public void load() { 40 boolean addedDefault = layers.size() != 0; 40 41 for(Collection<String> c : Main.pref.getArray("imagery.layers", 41 42 Collections.<Collection<String>>emptySet())) { … … 57 58 } 58 59 Collections.sort(layers); 60 if(addedDefault) 61 save(); 59 62 } 60 63 … … 81 84 } 82 85 while (defaultLayers.remove(null)) {} 83 86 84 87 Collection<String> defaults = Main.pref.getCollection("imagery.layers.default"); 85 88 ArrayList<String> defaultsSave = new ArrayList<String>(); … … 87 90 if (def.isDefaultEntry()) { 88 91 defaultsSave.add(def.getUrl()); 89 92 90 93 boolean isKnownDefault = false; 91 94 for (String url : defaults) { … … 114 117 ? defaultsSave : defaults); 115 118 } 116 119 117 120 // some additional checks to respect extended URLs in preferences (legacy workaround) 118 121 private boolean isSimilar(String a, String b) {
Note:
See TracChangeset
for help on using the changeset viewer.