diff options
Diffstat (limited to 'plugins/PluginUpdater/src/DlgUpdate.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index dc563cbcba..66f83c9287 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -464,7 +464,15 @@ static void DlgUpdateSilent(void *param) g_plugin.setByte(DB_SETTING_RESTART_COUNT, 5);
g_plugin.setByte(DB_SETTING_NEED_RESTART, 1);
+ if (g_plugin.bBackup)
+ CallService(MS_AB_BACKUP, 0, 0);
+
// 5) Prepare Restart
+ if (g_plugin.bAutoRestart) {
+ RestartPrompt(0);
+ return;
+ }
+
wchar_t tszTitle[100];
mir_snwprintf(tszTitle, TranslateT("%d component(s) was updated"), count);
|