mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-21 10:37:18 +02:00
[ui] clear thumbnail requests when changing viewpoints
This commit is contained in:
parent
ae3184decc
commit
dd235dcbf1
2 changed files with 12 additions and 0 deletions
|
@ -271,3 +271,11 @@ class ThumbnailCache(QObject):
|
|||
# No more request to process
|
||||
# Unregister worker thread
|
||||
ThumbnailCache.activeWorkerThreads -= 1
|
||||
|
||||
@Slot()
|
||||
def clearRequests(self):
|
||||
"""Clear all pending thumbnail creation requests.
|
||||
|
||||
Requests already under treatment by a worker thread will still be completed.
|
||||
"""
|
||||
ThumbnailCache.requests.clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue