Added autosave to loghistory

This commit is contained in:
Leon Etienne (ubuntu wsl)
2020-09-27 13:59:13 +02:00
parent a19d27203f
commit feb2d92e38
7 changed files with 47 additions and 7 deletions

View File

@@ -105,9 +105,10 @@ void DownloadManager::Update()
DownloadNext();
}
// Check every second, non-blocking
// Update every 1-2 seconds, non-blocking, the download progresses
if ((time(0) - lastProgressCheck > 2) && (cachedNumActiveDownloads > 0))
{
// Mutex gets reset in Save();
UpdateDownloadProgressPercentages();
}