Changeset 12393 in josm


Ignore:
Timestamp:
2017-06-11T14:42:56+02:00 (7 years ago)
Author:
michael2402
Message:

Hide color filter sliders if no image layer is selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java

    r12392 r12393  
    281281        public void updateLayers(List<Layer> layers, boolean allVisible, boolean allHidden) {
    282282            Collection<? extends Layer> usedLayers = filterLayers(layers);
     283            setVisible(!usedLayers.isEmpty());
    283284            if (!usedLayers.stream().anyMatch(Layer::isVisible)) {
    284285                slider.setEnabled(false);
Note: See TracChangeset for help on using the changeset viewer.