kopia lustrzana https://github.com/JOSM/MapWithAI
MapWithAILayer: Don't allow MapWithAI data to be merged into a OSM data layer.
Signed-off-by: Taylor Smock <tsmock@fb.com>pull/1/head
rodzic
8955a871a6
commit
01f5f51a6f
|
@ -365,4 +365,11 @@ public class MapWithAILayer extends OsmDataLayer implements ActiveLayerChangeLis
|
|||
// Consider a deletion a "successful" save.
|
||||
return Files.deleteIfExists(file.toPath());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMergable(final Layer other) {
|
||||
// Don't allow this layer to be merged down
|
||||
return other instanceof MapWithAILayer;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue