[ui] Graph: Connect all chunks when setting a graph for the first time

This was initially done after a call to `graph.update()`, but as the
calls to the entire update have been reduced to avoid processing stuff
we do not need to process, the chunks are never connected when opening
a project, meaning the progress bar remains invisible until an explicit
call to `graph.update()` is done.
This commit is contained in:
Candice Bentéjac 2024-07-01 11:53:00 +01:00
parent c9ff5f92db
commit 48e4c68e61

View file

@ -377,6 +377,10 @@ class UIGraph(QObject):
self._graph.updated.connect(self.onGraphUpdated)
self._taskManager.update(self._graph)
# update and connect chunks when the graph is set for the first time
self.updateChunks()
# perform auto-layout if graph does not provide nodes positions
if Graph.IO.Features.NodesPositions not in self._graph.fileFeatures:
self._layout.reset()