Description
After synchronising a Mergin Maps project from the field back to QGIS Desktop, the synchronisation completes successfully and the new/changed features are correctly written to the local GeoPackage.
However, the feature count displayed in the QGIS Layer Tree is not updated automatically.
The layer still shows the old number of features in the Layer Tree, even though the underlying data has already been successfully synchronised and the new features are visible/available in the layer.
The feature count is only updated after closing and reopening the QGIS project.
Steps to reproduce
- Open a QGIS project containing a Mergin Maps project/layer.
- Synchronise the project with Mergin Maps.
- Collect or create additional features in the Mergin Maps mobile app.
- Synchronise the mobile project back to Mergin Maps.
- In QGIS Desktop, synchronise/pull the changes using the Mergin Maps QGIS plugin.
- Wait until the synchronisation completes successfully.
- Look at the feature count displayed next to the layer in the QGIS Layer Tree.
Expected behaviour
After a successful synchronisation, the feature count in the QGIS Layer Tree should be refreshed automatically and show the current number of features in the layer.
For example:
Before sync:
Schacht (150)
After synchronisation with 10 new features:
Schacht (160)
Actual behaviour
The synchronisation completes successfully and the data is updated, but the Layer Tree still displays:
Schacht (150)
The count remains unchanged until the QGIS project is closed and reopened.
After reopening the project, the correct count is displayed:
Schacht (160)
Additional information
The problem appears to be limited to the displayed feature count in the QGIS Layer Tree. The synchronised data itself is correct.
This is particularly noticeable in field workflows where the Layer Tree is used to quickly monitor the number of collected objects.
Environment
- QGIS: [version]
- Mergin Maps QGIS Plugin: [since 3.28]
- Operating system: [Windows]
The issue can be reproduced consistently after synchronising newly created features from Mergin Maps mobile to QGIS Desktop.

Description
After synchronising a Mergin Maps project from the field back to QGIS Desktop, the synchronisation completes successfully and the new/changed features are correctly written to the local GeoPackage.
However, the feature count displayed in the QGIS Layer Tree is not updated automatically.
The layer still shows the old number of features in the Layer Tree, even though the underlying data has already been successfully synchronised and the new features are visible/available in the layer.
The feature count is only updated after closing and reopening the QGIS project.
Steps to reproduce
Expected behaviour
After a successful synchronisation, the feature count in the QGIS Layer Tree should be refreshed automatically and show the current number of features in the layer.
For example:
Before sync:
Schacht (150)After synchronisation with 10 new features:
Schacht (160)Actual behaviour
The synchronisation completes successfully and the data is updated, but the Layer Tree still displays:
Schacht (150)The count remains unchanged until the QGIS project is closed and reopened.
After reopening the project, the correct count is displayed:
Schacht (160)Additional information
The problem appears to be limited to the displayed feature count in the QGIS Layer Tree. The synchronised data itself is correct.
This is particularly noticeable in field workflows where the Layer Tree is used to quickly monitor the number of collected objects.
Environment
The issue can be reproduced consistently after synchronising newly created features from Mergin Maps mobile to QGIS Desktop.