qgisinspiretools / qgis-wfs20-client-plugin

QGIS Plugin for OGC Web Feature Service 2.0.0
11 stars 8 forks source link

[Feature request] Possibility for default plugin configuration via qgis_global_settings.ini #22

Closed JPPauly closed 1 year ago

JPPauly commented 3 years ago

It would be really useful to be able to load a default plugin config via qgis_global_settings.ini as long as there is no user specific config. Using QgsSettings function instead of QSettings would support that.

I created a pull request for your consideration.

ejn commented 3 years ago

Nice idea. I'll check the PR when I get a minute, but at first glance it looks good.

JPPauly commented 3 years ago

I just commited a fix into my pull request. Q(gs)Settings seems to be inconsistent in what datatype is returned by value(). Sometimes its Bool True/False and sometimes its String "true"/"false". Checking for both seems to work in all cases.

ejn commented 3 years ago

PR #21 is merged. Many thanks!

I'll prepare a release with this in it and upload to the QGIS Repository. Will close this ticket once the new version is available there.

ejn commented 3 years ago

Release 0.9.11 is now waiting for approval in the QGIS Plugins Repo.

ejn commented 3 years ago

0.9.11 was approved (a long time ago!), so closing this now.