mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-24 20:17:17 +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:
|
||||
return
|
||||
self._sortedDFSChunks.setObjectList(chunks)
|
||||
# Update the list of monitored chunks
|
||||
self._chunksMonitor.setChunks(self._sortedDFSChunks)
|
||||
# provide ChunkMonitor with the update list of chunks
|
||||
self.updateChunkMonitor(self._sortedDFSChunks)
|
||||
|
||||
def updateChunkMonitor(self, chunks):
|
||||
""" Update the list of chunks for status files monitoring. """
|
||||
self._chunksMonitor.setChunks(chunks)
|
||||
|
||||
def clear(self):
|
||||
if self._graph:
|
||||
|
@ -342,6 +346,9 @@ class UIGraph(QObject):
|
|||
localFile += ".mg"
|
||||
self._graph.save(localFile)
|
||||
self._undoStack.setClean()
|
||||
# saving file on disk impacts cache folder location
|
||||
# => force re-evaluation of monitored status files paths
|
||||
self.updateChunkMonitor(self._sortedDFSChunks)
|
||||
|
||||
@Slot()
|
||||
def save(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue