Closed dakcarto closed 9 years ago
how does one refresh the layers tree programmatically ? layer.triggerRepaint() updates the colors in the maps but not the Layer's Panel
hi @minskmaz
remember this is a plugin, doe not belong to PyQGIS apis.
you need to get the reference of the plugin GUI and execute the refresh methods of the GUI: https://github.com/boundlessgeo/suite-qgis-plugin/blob/e5256a7a90c85f33b48b14ddf317a8bf767d8566/src/opengeo/gui/exploreritems.py#L16
Possible duplicate of #3?
Nothing happens when selecting QGIS Layers, Groups or Styles in panel and clicking Refresh button:
To replicate:
Select QGIS Layers in panel and click Refresh button
-> layera are not reloaded, i.e. listed layer names do not change
Select 'QGIS project' in panel and click Refresh button
-> layers are reloaded and show updated layer name
Same happens (or doesn't) for Groups or Styles. Maybe just connect those section's refresh to refreshing QGIS project.
Looks like QGIS layer and group renaming signals need connected to refreshing QGIS project as well.
Also, there is no contextual menu for any of the QGIS project sub-sections.