From d12cde7c44dc37e54d42fd35c42c958702122e2a Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Thu, 13 Mar 2025 14:16:38 +0800 Subject: [PATCH] Do not close window when killed processes --- Plugins/Flow.Launcher.Plugin.ProcessKiller/Main.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.ProcessKiller/Main.cs b/Plugins/Flow.Launcher.Plugin.ProcessKiller/Main.cs index 098e668cb..aec607575 100644 --- a/Plugins/Flow.Launcher.Plugin.ProcessKiller/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.ProcessKiller/Main.cs @@ -91,9 +91,8 @@ namespace Flow.Launcher.Plugin.ProcessKiller Action = (c) => { processHelper.TryKill(p); - // Re-query to refresh process list - _context.API.ChangeQuery(query.RawQuery, true); - return true; + _context.API.ReQuery(); + return false; } }); } @@ -120,9 +119,8 @@ namespace Flow.Launcher.Plugin.ProcessKiller { processHelper.TryKill(p.Process); } - // Re-query to refresh process list - _context.API.ChangeQuery(query.RawQuery, true); - return true; + _context.API.ReQuery(); + return false; } }); }