Ignore:
Timestamp:
2016-05-28T12:41:21+02:00 (9 years ago)
Author:
nokutu
Message:

Added #12879 suggestion

Location:
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryPreferenceSetting.java

    r32076 r32199  
    5757  private final JCheckBox format24 = new JCheckBox(I18n.tr("Use 24 hour format"));
    5858  private final JCheckBox moveTo = new JCheckBox(I18n.tr("Move to picture''s location with next/previous buttons"));
     59  private final JCheckBox hoverEnabled = new JCheckBox(I18n.tr("Preview images when hovering its icon"));
    5960
    6061  private final JButton loginButton = new MapillaryButton(I18n.tr("Login"), new LoginAction(this));
     
    99100    format24.setSelected(Main.pref.getBoolean("mapillary.format-24"));
    100101    moveTo.setSelected(Main.pref.getBoolean("mapillary.move-to-picture", true));
     102        this.hoverEnabled.setSelected(Main.pref.getBoolean("mapillary.hover-enabled", true));
    101103
    102104    mainPanel.setLayout(new GridBagLayout());
     
    119121    mainPanel.add(format24, GBC.eol());
    120122    mainPanel.add(moveTo, GBC.eol());
     123    mainPanel.add(hoverEnabled, GBC.eol());
    121124    MapillaryColorScheme.styleAsDefaultPanel(
    122125      mainPanel, downloadModePanel, reverseButtons, displayHour, format24, moveTo
     
    182185    Main.pref.put("mapillary.format-24", this.format24.isSelected());
    183186    Main.pref.put("mapillary.move-to-picture", this.moveTo.isSelected());
     187    Main.pref.put("mapillary.hover-enabled", this.hoverEnabled.isSelected());
    184188    return mod;
    185189  }
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/mode/SelectMode.java

    r31972 r32199  
    160160      return;
    161161    }
     162    if (!Main.pref.getBoolean("mapillary.hover-enabled", true)) {
     163      return;
     164    }
     165
    162166    MapillaryAbstractImage closestTemp = getClosest(e.getPoint());
    163167
Note: See TracChangeset for help on using the changeset viewer.