- Timestamp:
- 2018-05-22T00:45:56+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r13493 r13815 313 313 } 314 314 for (StyleSource source : styles.getStyleSources()) { 315 loadStyleForFirstTime(source); 315 if (source.active) { 316 loadStyleForFirstTime(source); 317 } 316 318 } 317 319 fireMapPaintSylesUpdated(); … … 406 408 StyleSource s = data.get(p); 407 409 s.active = !s.active; 410 if (s.active && !s.isLoaded()) { 411 loadStyleForFirstTime(s); 412 } 408 413 } 409 414 MapPaintPrefHelper.INSTANCE.put(data); -
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
r13810 r13815 39 39 private final List<Throwable> errors = new CopyOnWriteArrayList<>(); 40 40 private final Set<String> warnings = new CopyOnWriteArraySet<>(); 41 protected boolean loaded; 42 41 43 /** 42 44 * The zip file containing the icons for this style … … 257 259 return null; 258 260 } 261 262 /** 263 * Determines if the style has been loaded (initialized). 264 * @return {@code true} if the style has been loaded 265 * @since 13815 266 */ 267 public final boolean isLoaded() { 268 return loaded; 269 } 259 270 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r13811 r13815 507 507 multipolygonRules.initIndex(); 508 508 canvasRules.initIndex(); 509 loaded = true; 509 510 } finally { 510 511 STYLE_SOURCE_LOCK.writeLock().unlock();
Note:
See TracChangeset
for help on using the changeset viewer.