mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Fix Wox restart
1. refactoring restart 2. delte some windows forms methods 3. using string inteperlation and delete hard coeded new line char should fix #322
This commit is contained in:
@@ -52,6 +52,10 @@ namespace Wox
|
||||
|
||||
public bool OnActivate(IList<string> args)
|
||||
{
|
||||
if (args.Count > 0 && args[0] == SingleInstance<App>.Restart)
|
||||
{
|
||||
Window.CloseApp();
|
||||
}
|
||||
CommandArgsFactory.Execute(args);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user