allartk / leaflet.offline

Leaflet offline layer
https://allartk.github.io/leaflet.offline/
GNU Lesser General Public License v3.0
305 stars 76 forks source link

Hide delete button when there are no downloaded tiles #301

Open freiand opened 1 year ago

freiand commented 1 year ago

Thanks for your great work! What I find a bit confusing from a user perspective is that the delete button in the control is always visible, even if there are no downloaded tiles. I'd be nice if it's only visible when there is something to delete.