mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-31 15:28:35 +02:00
[ui] call loadOutputAttr only once (and not per chunk)
This commit is contained in:
parent
1c9c027b00
commit
0c961a5b68
1 changed files with 4 additions and 1 deletions
|
@ -200,10 +200,13 @@ class ChunksMonitor(QObject):
|
|||
times: the last modification times for currently monitored files.
|
||||
"""
|
||||
newRecords = dict(zip(self.monitoredChunks, times))
|
||||
hasChanges = False
|
||||
for chunk, fileModTime in newRecords.items():
|
||||
# update chunk status if last modification time has changed since previous record
|
||||
if fileModTime != chunk.statusFileLastModTime:
|
||||
chunk.updateStatusFromCache()
|
||||
hasChanges = True
|
||||
if hasChanges:
|
||||
chunk.node.loadOutputAttr()
|
||||
|
||||
def onFilePollerRefreshUpdated(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue