Ignore:
Timestamp:
2013-08-01T19:04:02+02:00 (11 years ago)
Author:
akks
Message:

[josm/PicLayer] - disable menu items by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerPlugin.java

    r29807 r29809  
    147147    @Override
    148148    public void layerAdded(Layer arg0) {
    149         newLayerFromClipboardAction.setEnabled(true);
     149        newLayerFromFileAction.setEnabled(true);
    150150        newLayerFromClipboardAction.setEnabled(true);
    151151    }
     
    165165        // Why should I do all these checks now?
    166166        boolean enable = Main.map != null && Main.map.mapView != null && Main.map.mapView.getAllLayers() != null && Main.map.mapView.getAllLayers().size() != 0;
    167         newLayerFromClipboardAction.setEnabled(enable);
     167        newLayerFromFileAction.setEnabled(enable);
    168168        newLayerFromClipboardAction.setEnabled(enable);
    169169    }
Note: See TracChangeset for help on using the changeset viewer.