mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 05:06:36 +02:00
Ensure UpdateManager is Disposed #1320
This commit is contained in:
@@ -71,13 +71,15 @@ namespace Wox.Core
|
|||||||
|
|
||||||
await m.ApplyReleases(u);
|
await m.ApplyReleases(u);
|
||||||
await m.CreateUninstallerRegistryEntry();
|
await m.CreateUninstallerRegistryEntry();
|
||||||
m.Dispose();
|
|
||||||
|
|
||||||
var newVersionTips = Translater.GetTranslation("newVersionTips");
|
var newVersionTips = Translater.GetTranslation("newVersionTips");
|
||||||
newVersionTips = string.Format(newVersionTips, fr.Version);
|
newVersionTips = string.Format(newVersionTips, fr.Version);
|
||||||
MessageBox.Show(newVersionTips);
|
MessageBox.Show(newVersionTips);
|
||||||
Log.Info($"|Updater.UpdateApp|Update succeed:{newVersionTips}");
|
Log.Info($"|Updater.UpdateApp|Update succeed:{newVersionTips}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// always dispose UpdateManager
|
||||||
|
m.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
|
|||||||
Reference in New Issue
Block a user