Remove temporary installer files on application startup

This commit is contained in:
Dan Paulat 2024-03-26 23:46:56 -05:00
parent b2e441dc2e
commit d598631a77
3 changed files with 38 additions and 3 deletions

View file

@ -627,9 +627,13 @@ void MainWindowImpl::AsyncSetup()
// Check for updates
if (generalSettings.update_notifications_enabled().GetValue())
{
boost::asio::post(
threadPool_,
[this]() { updateManager_->CheckForUpdates(main::kVersionString_); });
boost::asio::post(threadPool_,
[this]()
{
manager::UpdateManager::RemoveTemporaryReleases();
updateManager_->CheckForUpdates(
main::kVersionString_);
});
}
}