mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-28 05:57:38 +02:00
[ui] Graph: update ChunkMonitor after 'saveAs'
Saving file on disk impacts cache folder location and therefore status files paths; force re-evaluation of monitored filepaths at the end of a "saveAs" operation.
This commit is contained in:
parent
d30b2364eb
commit
88b0297660
1 changed files with 9 additions and 2 deletions
|
@ -306,8 +306,12 @@ class UIGraph(QObject):
|
||||||
if self._sortedDFSChunks.objectList() == chunks:
|
if self._sortedDFSChunks.objectList() == chunks:
|
||||||
return
|
return
|
||||||
self._sortedDFSChunks.setObjectList(chunks)
|
self._sortedDFSChunks.setObjectList(chunks)
|
||||||
# Update the list of monitored chunks
|
# provide ChunkMonitor with the update list of chunks
|
||||||
self._chunksMonitor.setChunks(self._sortedDFSChunks)
|
self.updateChunkMonitor(self._sortedDFSChunks)
|
||||||
|
|
||||||
|
def updateChunkMonitor(self, chunks):
|
||||||
|
""" Update the list of chunks for status files monitoring. """
|
||||||
|
self._chunksMonitor.setChunks(chunks)
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
if self._graph:
|
if self._graph:
|
||||||
|
@ -342,6 +346,9 @@ class UIGraph(QObject):
|
||||||
localFile += ".mg"
|
localFile += ".mg"
|
||||||
self._graph.save(localFile)
|
self._graph.save(localFile)
|
||||||
self._undoStack.setClean()
|
self._undoStack.setClean()
|
||||||
|
# saving file on disk impacts cache folder location
|
||||||
|
# => force re-evaluation of monitored status files paths
|
||||||
|
self.updateChunkMonitor(self._sortedDFSChunks)
|
||||||
|
|
||||||
@Slot()
|
@Slot()
|
||||||
def save(self):
|
def save(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue