mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 14:12:26 +02:00
Remove out-of-date backups on startup as well as on rule-evaluation
This commit is contained in:
parent
a9057e09e0
commit
9e2b3fe820
1 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,10 @@ int64_t DomainContentBackupManager::getMostRecentBackupTimeInSecs(const QString&
|
|||
}
|
||||
|
||||
void DomainContentBackupManager::setup() {
|
||||
for (auto& rule : _backupRules) {
|
||||
removeOldBackupVersions(rule);
|
||||
}
|
||||
|
||||
auto backups = getAllBackups();
|
||||
for (auto& backup : backups) {
|
||||
QFile backupFile { backup.absolutePath };
|
||||
|
|
Loading…
Reference in a new issue