Changeset 18944 in josm for trunk


Ignore:
Timestamp:
2024-01-19T09:30:37+01:00 (11 months ago)
Author:
GerdP
Message:

fix #22806 Cannot disable tabs in image viewer and #22860 Geotagged Images dialog confuses tabs
If preference geoimage.viewer.show.tabs=false is set, make sure that only the recent image is selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

    r18940 r18944  
    915915        if (!Config.getPref().getBoolean("geoimage.viewer.show.tabs", true)) {
    916916            updateRequired = true;
     917            layers.removeAll();
    917918            // Clear the selected images in other geoimage layers
    918919            this.getImageTabs().map(m -> m.layer).filter(IGeoImageLayer.class::isInstance).map(IGeoImageLayer.class::cast)
Note: See TracChangeset for help on using the changeset viewer.