AutoUpdater: support optionally restarting Dolphin after update

This commit is contained in:
Pierre Bourdon
2018-03-23 00:29:03 +01:00
parent 773ec975f3
commit 9628333b86
6 changed files with 55 additions and 22 deletions

View File

@ -80,7 +80,8 @@ void Updater::OnUpdateAvailable(const NewVersionInformation& info)
if (choice == QDialog::Accepted)
{
TriggerUpdate(info);
TriggerUpdate(info, later ? AutoUpdateChecker::RestartMode::NO_RESTART_AFTER_UPDATE :
AutoUpdateChecker::RestartMode::RESTART_AFTER_UPDATE);
if (!later)
m_parent->close();