delete mediaindex folder on close

Since we're storing media frames too with no disk space management
at the moment, we'll remove the mediaindex folder too on close
just for this testing period
This commit is contained in:
itsmattkc
2019-11-17 12:32:01 +09:00
parent 35802d37b0
commit b1f4bf3dbb
+1
View File
@@ -152,6 +152,7 @@ void olive::MainWindow::closeEvent(QCloseEvent *e)
// FIXME: Test code - We have no cache management and the cache is very much testing only, so we delete it on close
// as to not clog up HDD space
QDir(GetMediaCacheLocation()).removeRecursively();
QDir(GetMediaIndexLocation()).removeRecursively();
// End test code
QMainWindow::closeEvent(e);