Changeset 18586 in josm for trunk/src


Ignore:
Timestamp:
2022-11-07T21:46:03+01:00 (18 months ago)
Author:
taylor.smock
Message:

Fix #22487: Object hover preview is re-enabled on layer change even when disabled in properties (patch by Woazboat, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r18576 r18586  
    895895        if (newLayer != null) {
    896896            newLayer.addPropertyChangeListener(this);
    897             if (newLayer.isVisible()) {
     897            if (newLayer.isVisible() && Boolean.TRUE.equals(PROP_PREVIEW_ON_HOVER.get())) {
    898898                MainApplication.getMap().mapView.addPrimitiveHoverListener(this);
    899899            } else {
     
    909909
    910910            // Disable hover preview when primitives are invisible
    911             if (isVisible) {
     911            if (isVisible && Boolean.TRUE.equals(PROP_PREVIEW_ON_HOVER.get())) {
    912912                MainApplication.getMap().mapView.addPrimitiveHoverListener(this);
    913913            } else {
Note: See TracChangeset for help on using the changeset viewer.