Ignore:
Timestamp:
2018-05-22T00:45:56+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #10047 - Initialize only active mappaint styles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r13493 r13815  
    313313        }
    314314        for (StyleSource source : styles.getStyleSources()) {
    315             loadStyleForFirstTime(source);
     315            if (source.active) {
     316                loadStyleForFirstTime(source);
     317            }
    316318        }
    317319        fireMapPaintSylesUpdated();
     
    406408            StyleSource s = data.get(p);
    407409            s.active = !s.active;
     410            if (s.active && !s.isLoaded()) {
     411                loadStyleForFirstTime(s);
     412            }
    408413        }
    409414        MapPaintPrefHelper.INSTANCE.put(data);
Note: See TracChangeset for help on using the changeset viewer.