kopia lustrzana https://github.com/JOSM/MapWithAI
Don't add cycle layer actions when on JOSM r15923+
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head v1.3.4
rodzic
7f8b79acb0
commit
ad7c658b2b
|
@ -17,6 +17,7 @@ import javax.swing.JMenu;
|
|||
import javax.swing.JMenuItem;
|
||||
|
||||
import org.openstreetmap.josm.actions.JosmAction;
|
||||
import org.openstreetmap.josm.data.Version;
|
||||
import org.openstreetmap.josm.data.validation.OsmValidator;
|
||||
import org.openstreetmap.josm.data.validation.Test;
|
||||
import org.openstreetmap.josm.gui.MainApplication;
|
||||
|
@ -107,8 +108,10 @@ public final class MapWithAIPlugin extends Plugin implements Destroyable {
|
|||
new MapWithAIRemoteControl(); // instantiate to get action into Remote Control Preferences
|
||||
destroyables = new ArrayList<>();
|
||||
destroyables.add(new MapWithAIUploadHook(info));
|
||||
if (Version.getInstance().getVersion() < 15923) {
|
||||
destroyables.add(new CycleLayerDownAction()); // TODO remove/put in if block when JOSM-18638 is fixed
|
||||
destroyables.add(new CycleLayerUpAction()); // TODO see above
|
||||
}
|
||||
mapFrameInitialized(null, MainApplication.getMap());
|
||||
mapWithAIDownloadReader = new MapWithAIDownloadReader();
|
||||
DownloadDialog.addDownloadSource(mapWithAIDownloadReader);
|
||||
|
|
Ładowanie…
Reference in New Issue