Changeset 6039 in josm for trunk


Ignore:
Timestamp:
2013-06-29T01:01:59+02:00 (6 years ago)
Author:
Don-vip
Message:

see #8832 - Hide "export/convert to GPX" menu entries from contextual osm data layer in beginner mode to be consistent with File menu entries that are only displayed in expert mode

File:
1 edited

Legend:

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

    r6015 r6039  
    508508                new LayerSaveAction(this),
    509509                new LayerSaveAsAction(this),
    510                 new LayerGpxExportAction(this),
    511                 new ConvertToGpxLayerAction(),
     510        }));
     511        if (ExpertToggleAction.isExpert()) {
     512            actions.addAll(Arrays.asList(new Action[]{
     513                    new LayerGpxExportAction(this),
     514                    new ConvertToGpxLayerAction()}));
     515        }
     516        actions.addAll(Arrays.asList(new Action[]{
    512517                SeparatorLayerAction.INSTANCE,
    513518                new RenameLayerAction(getAssociatedFile(), this)}));
Note: See TracChangeset for help on using the changeset viewer.