MerginMaps / qgis-plugin

QGIS plugin for managing Mergin Maps projects
GNU General Public License v3.0
34 stars 13 forks source link

Reload project following download of updated .qgz file #617

Open volcan01010 opened 2 weeks ago

volcan01010 commented 2 weeks ago

Summary

As a Mergin Maps user, I would like the plugin to reload the QGIS project when a new version of the .qgz file has been downloaded, so that I see changes that have been made by other users.

Description

Consider this scenario:

What happens:

What should happen:

Related issues

https://github.com/MerginMaps/qgis-plugin/issues/592

Plugin version: 2024.2

volcan01010 commented 1 week ago

Alternatively, as you may not want to immediately reload in case the user has unsaved local changes, would be to pop up a QMessageBox with:

"A new version of the xxxxxx.qgz project settings file was retrieved from the server. Would you like to use it now?"

That way users could select 'OK' to reload, or 'Cancel' to make whatever change they want locally.

ValentinBuira commented 2 days ago

I can confirm the bug with editor permission. It should reload the QGIS project even if you don't have write permission, as it currently happening with writer permission

Note for dev : I also found an other case were the after a sync that might have the same root issue: after changing only the legend the qgis project does not reload after a sync even with appropriate permission