summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/DlgUpdate.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-04-20 14:18:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-04-20 14:18:00 +0300
commit7ff20362f58bb2cbdf64545b375090e02a4ae504 (patch)
tree712620452bca11807c88a33ca8655f86c3acab00 /plugins/PluginUpdater/src/DlgUpdate.cpp
parentdbc18aef69c444c6368f65b11bb031b322ac5ffd (diff)
more fixes for #3066
Diffstat (limited to 'plugins/PluginUpdater/src/DlgUpdate.cpp')
-rw-r--r--plugins/PluginUpdater/src/DlgUpdate.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp
index 2fa5769cfd..ff79f7356f 100644
--- a/plugins/PluginUpdater/src/DlgUpdate.cpp
+++ b/plugins/PluginUpdater/src/DlgUpdate.cpp
@@ -122,21 +122,6 @@ LBL_Error:
if (g_plugin.bBackup)
CallService(MS_AB_BACKUP, 0, 0);
-
- if (g_plugin.bChangePlatform) {
- TFileName mirandaPath;
- GetModuleFileName(nullptr, mirandaPath, _countof(mirandaPath));
- g_plugin.setWString("OldBin2", mirandaPath);
-
- g_plugin.delSetting(DB_SETTING_CHANGEPLATFORM);
- }
- else {
- ptrW oldbin(g_plugin.getWStringA("OldBin2"));
- if (oldbin) {
- PU::SafeDeleteFile(oldbin);
- g_plugin.delSetting("OldBin2");
- }
- }
}
// 5) Prepare Restart
@@ -447,9 +432,8 @@ LBL_Error:
Skin_PlaySound("updatecompleted");
g_plugin.bForceRedownload = false;
- g_plugin.bChangePlatform = false;
- g_plugin.delSetting(DB_SETTING_CHANGEPLATFORM);
- g_plugin.setByte(DB_SETTING_NEED_RESTART, 1);
+ g_plugin.bNeedRestart = true;
+ g_plugin.bChangePlatform.Delete();
if (g_plugin.bBackup)
CallService(MS_AB_BACKUP, 0, 0);