Ignore:
Timestamp:
2017-03-03T23:38:13+01:00 (3 years ago)
Author:
Don-vip
Message:

fix #14451 - Local imagery toolbar buttons disappear on restart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java

    r11654 r11657  
    3030import org.openstreetmap.josm.gui.layer.AlignImageryPanel;
    3131import org.openstreetmap.josm.gui.layer.ImageryLayer;
     32import org.openstreetmap.josm.gui.preferences.ToolbarPreferences;
    3233import org.openstreetmap.josm.gui.preferences.imagery.WMSLayerTree;
    3334import org.openstreetmap.josm.gui.util.GuiHelper;
     
    6566    public AddImageryLayerAction(ImageryInfo info) {
    6667        super(info.getMenuName(), /* ICON */"imagery_menu", tr("Add imagery layer {0}", info.getName()), null,
    67                 true, "imagery_" + info.getToolbarName(), false);
     68                true, ToolbarPreferences.IMAGERY_PREFIX + info.getToolbarName(), false);
    6869        putValue("help", ht("/Preferences/Imagery"));
    6970        setTooltip(info.getToolTipText().replaceAll("</?html>", ""));
Note: See TracChangeset for help on using the changeset viewer.