From 293a8a8199e24a6bfb7ee7eee02146065a073666 Mon Sep 17 00:00:00 2001 From: Divyansh Date: Fri, 3 Apr 2020 12:02:57 -0700 Subject: [PATCH] Working App execution --- src/modules/launcher/PowerLauncher/MainWindow.xaml.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs index 9c5dd90288..17b41bb6ab 100644 --- a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs +++ b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs @@ -19,6 +19,7 @@ using MessageBox = System.Windows.MessageBox; using Microsoft.Toolkit.Wpf.UI.XamlHost; using Windows.UI.Xaml.Controls; using System.Diagnostics; +using Wox.Plugin; namespace PowerLauncher { @@ -286,7 +287,14 @@ namespace PowerLauncher if (args != null) { ResultViewModel result = (ResultViewModel)args.SelectedItem; - Process.Start(result.Result.SubTitle); + bool hideWindow = result.Result.Action != null && result.Result.Action(new ActionContext + { + + }); + if (!hideWindow) + { + Console.WriteLine("here"); + } } }