Merge pull request #8217 from CookiePLMonster/windows-updater-improvements

Updates to auto-updater on Windows
This commit is contained in:
Connor McLaughlin 2019-07-23 10:39:04 +10:00 committed by GitHub
commit 8f6b237e11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 49 deletions

View file

@ -95,6 +95,11 @@ void Updater::OnUpdateAvailable(const NewVersionInformation& info)
AutoUpdateChecker::RestartMode::RESTART_AFTER_UPDATE);
if (!later)
m_parent->close();
{
RunOnObject(m_parent, [this] {
m_parent->close();
return 0;
});
}
}
}