Hide the vector options if they are not enabled, or the type is raster

Hide the vector options if they are not enabled or the file type is raster.