Dispose when restart

This commit is contained in:
bao-qian 2016-05-08 17:47:28 +01:00
parent e0b9a81c9b
commit d06fb83fee

View File

@ -68,6 +68,10 @@ namespace Wox
public void RestarApp()
{
// we must force dispose application
// UpdateManager.RestartApp() will call Environment.Exit(0)
// which will cause ungraceful exit
((IDisposable) Application.Current).Dispose();
UpdateManager.RestartApp();
}