Changeset 11174 in josm for trunk/src/org
- Timestamp:
- 2016-10-26T23:04:41+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r11017 r11174 156 156 @Override 157 157 protected void updateEnabledState() { 158 ImageryType type = info.getImageryType();159 // never enable blacklisted entries. Do not add same imagery layer twice (fix #2519)160 158 if (info.isBlacklisted()) { 161 159 setEnabled(false); 162 } else if (type == ImageryType.TMS || type == ImageryType.BING || type == ImageryType.SCANEX){160 } else { 163 161 setEnabled(true); 164 } else {165 setEnabled(!Main.getLayerManager().getLayers().isEmpty());166 162 } 167 163 }
Note:
See TracChangeset
for help on using the changeset viewer.