cache: warn user in UI when disk cache is full

This commit is contained in:
itsmattkc
2022-05-18 10:57:25 -07:00
parent ac3c38af9f
commit f85c41a0d6
3 changed files with 32 additions and 2 deletions
+10 -1
View File
@@ -353,7 +353,16 @@ bool DiskCacheFolder::DeleteLeastRecent()
}
}
return DeleteFileInternal(hash_to_delete);
bool e = DeleteFileInternal(hash_to_delete);
if (e) {
Core::instance()->WarnCacheFull();
}
return e;
} else {
return false;
}
}
void DiskCacheFolder::CloseCacheFolder()