mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Fix Wox restart by wait Mutex to be released
Fix bug in 24866ff032829e9bd34704d3d5970d227a4c8db3. Wait existing Mutex to release itself instead of create a new one. Relate issue: #322
This commit is contained in:
@@ -80,12 +80,8 @@ namespace Wox
|
||||
|
||||
public void CloseApp()
|
||||
{
|
||||
Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
notifyIcon.Visible = false;
|
||||
Close();
|
||||
Environment.Exit(0);
|
||||
}));
|
||||
SingleInstance<App>.singleInstanceMutex.ReleaseMutex();
|
||||
Application.Current.Shutdown();
|
||||
}
|
||||
|
||||
public void RestarApp()
|
||||
|
||||
Reference in New Issue
Block a user