diff options
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 298c46c0f9..f448eabc11 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -338,8 +338,9 @@ MFilePath InvertMirandaPlatform() void DoRestart()
{
BOOL bRestartCurrentProfile = g_plugin.getBool("RestartCurrentProfile", true);
- if (g_plugin.bChangePlatform)
+ if (g_plugin.bChangePlatform) {
CallServiceSync(MS_SYSTEM_RESTART, bRestartCurrentProfile, (LPARAM)InvertMirandaPlatform().c_str());
- else
- CallServiceSync(MS_SYSTEM_RESTART, bRestartCurrentProfile);
+ g_plugin.bChangePlatform.Delete();
+ }
+ else CallServiceSync(MS_SYSTEM_RESTART, bRestartCurrentProfile);
}
|