mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
ProcessKiller: support spaces in process search
This commit is contained in:
parent
6e6a74beb9
commit
12281142c1
1 changed files with 6 additions and 6 deletions
|
|
@ -37,15 +37,15 @@ namespace Flow.Launcher.Plugin.ProcessKiller
|
|||
|
||||
public List<Result> Query(Query query)
|
||||
{
|
||||
var termToSearch = query.Terms.Length == 1
|
||||
var termToSearch = query.Terms.Length <= 1
|
||||
? null
|
||||
: query.FirstSearch.ToLower();
|
||||
: string.Join(Plugin.Query.TermSeperater, query.Terms.Skip(1)).ToLower();
|
||||
|
||||
var processlist = GetProcesslist(termToSearch);
|
||||
|
||||
return
|
||||
!processlist.Any()
|
||||
? null
|
||||
: CreateResultsFromProcesses(processlist, termToSearch);
|
||||
return !processlist.Any()
|
||||
? null
|
||||
: CreateResultsFromProcesses(processlist, termToSearch);
|
||||
}
|
||||
|
||||
public string GetTranslatedPluginTitle()
|
||||
|
|
|
|||
Loading…
Reference in a new issue