mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 02:32:43 +02:00
Remove deleted file from the _assetsOnDisk set
This commit is contained in:
parent
c6a806072d
commit
acf04830ee
1 changed files with 6 additions and 1 deletions
|
@ -106,7 +106,12 @@ void AssetsBackupHandler::checkForAssetsToDelete() {
|
|||
});
|
||||
if (noCorruptedBackups) {
|
||||
for (const auto& hash : deprecatedAssets) {
|
||||
QFile::remove(_assetsDirectory + hash);
|
||||
auto success = QFile::remove(_assetsDirectory + hash);
|
||||
if (success) {
|
||||
_assetsOnDisk.erase(hash);
|
||||
} else {
|
||||
qCWarning(asset_backup) << "Could not delete asset:" << hash;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
qCWarning(asset_backup) << "Some backups did not load properly, aborting delete operation for safety.";
|
||||
|
|
Loading…
Reference in a new issue