enricofer / go2mapillary

a plugin for displaying and extracting information from Mapillary street level imagery with QGIS (3.0)
GNU General Public License v3.0
34 stars 14 forks source link

The plugin keeps downloading even if I remove the group or close the widget #19

Closed Gustry closed 6 years ago

Gustry commented 6 years ago

Even if I remove the Mapillary widget AND the group in the legend, everytime I zoom in/out, the plugins starts downloading and recreating the group in the legend. So I'm closing QGIS when I want to stop using Mapillary. There should be a button, maybe use a "setCheckable" on your icon in the toolbar. Checked means that the plugin will download for every new extent.

enricofer commented 6 years ago

You should avoid to manually remove mapillary layers. As they are managed by the plugin, some exceptions could be expected. Indeed your proposal for checkable button is good. https://github.com/enricofer/go2mapillary/commit/b33680012826b9baa937b7b7995e777a8a12b6c1

Gustry commented 6 years ago

I was trying to remove mapillary group because I wanted to disable mapillary and that was the only solution I thought (and closing the widget). It's OK if there is now a checkable button.

Maybe add a qgs messagebar warning when a group/layer is deleted ?

Thanks for your dev