Add tool used to extract project file revisions from project file database

* Add tool used to extract project file versions from database
* Delete old records from backup to limit number of records to 50
This commit is contained in:
Magne Sjaastad
2024-05-04 13:21:31 +02:00
committed by GitHub
parent a55b53c725
commit 96481d81a8
7 changed files with 279 additions and 5 deletions

View File

@@ -416,8 +416,9 @@ bool RimProject::writeProjectFile()
if ( RiaPreferences::current()->storeBackupOfProjectFiles() )
{
QString backupFilename = fileName + "db";
RiaProjectBackupTools::appendTextToDatabase( backupFilename, content );
QString backupFilename = fileName + "db";
const int maximumRecordCount = 50;
RiaProjectBackupTools::appendTextToDatabase( backupFilename, maximumRecordCount, content );
}
distributePathsFromGlobalPathList();