mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +02:00
Merge pull request #14593 from SimonWalton-HiFi/remove-backups-on-startup
Remove out-of-date backups on startup
This commit is contained in:
commit
cceacd3d1d
1 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,10 @@ int64_t DomainContentBackupManager::getMostRecentBackupTimeInSecs(const QString&
|
||||||
}
|
}
|
||||||
|
|
||||||
void DomainContentBackupManager::setup() {
|
void DomainContentBackupManager::setup() {
|
||||||
|
for (auto& rule : _backupRules) {
|
||||||
|
removeOldBackupVersions(rule);
|
||||||
|
}
|
||||||
|
|
||||||
auto backups = getAllBackups();
|
auto backups = getAllBackups();
|
||||||
for (auto& backup : backups) {
|
for (auto& backup : backups) {
|
||||||
QFile backupFile { backup.absolutePath };
|
QFile backupFile { backup.absolutePath };
|
||||||
|
|
Loading…
Reference in a new issue