Changeset 5733 in josm


Ignore:
Timestamp:
2013-02-20T18:34:07+01:00 (8 years ago)
Author:
bastiK
Message:

fixed #8446 - Can't put imagery sources in the toolbar anymore after r5728

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

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

    r5729 r5733  
    3232import org.openstreetmap.josm.gui.layer.ImageryLayer;
    3333import org.openstreetmap.josm.gui.layer.Layer;
     34import org.openstreetmap.josm.gui.preferences.imagery.ImageryPreference;
    3435import org.openstreetmap.josm.tools.ImageProvider;
    3536
     
    106107    }
    107108
    108     protected void refreshImageryMenu() {
     109    /**
     110     * Refresh imagery menu.
     111     *
     112     * Outside this class only called in {@link ImageryPreference#initialize()}.
     113     * (In order to have actions ready for the toolbar, see #8446.)
     114     */
     115    public void refreshImageryMenu() {
    109116        removeAll();
    110117
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r5731 r5733  
    829829        ImageryLayerInfo.instance.load();
    830830        OffsetBookmark.loadBookmarks();
     831        Main.main.menu.imageryMenu.refreshImageryMenu();
    831832        Main.main.menu.imageryMenu.refreshOffsetMenu();
    832833    }
Note: See TracChangeset for help on using the changeset viewer.