mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Dispose when restart
This commit is contained in:
parent
e0b9a81c9b
commit
d06fb83fee
1 changed files with 4 additions and 0 deletions
|
|
@ -68,6 +68,10 @@ namespace Wox
|
||||||
|
|
||||||
public void RestarApp()
|
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();
|
UpdateManager.RestartApp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue