Changeset 16698 in josm


Ignore:
Timestamp:
2020-06-21T14:58:15+02:00 (4 years ago)
Author:
simon04
Message:

fix #19374 - Relation editor: Option to hide tagging preset links

Advanced preference key relation.editor.presets.visible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java

    r12758 r16698  
    2222import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
    2323import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetHandler;
     24import org.openstreetmap.josm.spi.preferences.Config;
    2425import org.openstreetmap.josm.tools.CheckParameterUtil;
    2526
     
    5051        if (presetHandler != null) {
    5152            presetListPanel = new PresetListPanel();
    52             pnl.add(presetListPanel, BorderLayout.NORTH);
     53            if (Config.getPref().getBoolean("relation.editor.presets.visible", true)) {
     54                pnl.add(presetListPanel, BorderLayout.NORTH);
     55            }
    5356        }
    5457        return pnl;
Note: See TracChangeset for help on using the changeset viewer.