mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 11:09:28 +08:00
Dispose when restart
This commit is contained in:
parent
e0b9a81c9b
commit
d06fb83fee
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user