diskmanager: clearing disk cache at runtime will correctly signal renderers

Clearing the disk cache in the preferences will correctly communicate to
renderers that those frames are now deleted.
This commit is contained in:
itsmattkc
2020-01-25 12:18:46 +11:00
parent c26070bfb5
commit 3f85ce8a7a
8 changed files with 45 additions and 13 deletions
@@ -112,7 +112,7 @@ void PreferencesDiskTab::ClearDiskCache()
tr("Clear Disk Cache"),
tr("Are you sure you want to clear the disk cache in '%1'?").arg(Config::Current()["DiskCachePath"].toString()),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
if (DiskManager::instance()->ClearDiskCache()) {
if (DiskManager::instance()->ClearDiskCache(false)) {
QMessageBox::information(this,
tr("Clear Disk Cache"),
tr("Disk cache cleared successfully"),