some render cache adjustments

This commit is contained in:
itsmattkc
2019-09-04 10:58:50 +10:00
parent 12bc5839a6
commit 371d0e2b37
22 changed files with 150 additions and 48 deletions
+17
View File
@@ -79,3 +79,20 @@ void olive::MainWindow::ProjectOpen(Project* p)
connect(node_panel, SIGNAL(SelectionChanged(QList<Node*>)), param_panel, SLOT(SetNodes(QList<Node*>)));
}
// FIXME: Test code
#include <QDir>
#include "common/filefunctions.h"
// End test code
void olive::MainWindow::closeEvent(QCloseEvent *e)
{
olive::panel_focus_manager->DeleteAllPanels();
// 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();
// End test code
QMainWindow::closeEvent(e);
}