[ui] remove old thumbnails from disk cache when launching app

This commit is contained in:
mugulmd 2023-01-06 02:10:34 -08:00
parent 1819eacbdb
commit 7566544164
2 changed files with 48 additions and 2 deletions

View file

@ -121,6 +121,9 @@ class MeshroomApp(QApplication):
if thumbnailDir is not None:
ThumbnailCache.thumbnailDir = thumbnailDir
# Clean thumbnail directory
ThumbnailCache.clean()
# QML engine setup
qmlDir = os.path.join(pwd, "qml")
url = os.path.join(qmlDir, "main.qml")