mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[PTRun]Don't show results from other plugins when using keyword (#19206)
This commit is contained in:
committed by
GitHub
parent
8e2570033c
commit
996a235e12
@@ -46,8 +46,7 @@ namespace Microsoft.Plugin.Uri
|
||||
{
|
||||
var results = new List<Result>();
|
||||
|
||||
if (IsActivationKeyword(query)
|
||||
&& BrowserInfo.IsDefaultBrowserSet)
|
||||
if (string.IsNullOrWhiteSpace(query?.Search) && BrowserInfo.IsDefaultBrowserSet)
|
||||
{
|
||||
results.Add(new Result
|
||||
{
|
||||
@@ -104,12 +103,6 @@ namespace Microsoft.Plugin.Uri
|
||||
return results;
|
||||
}
|
||||
|
||||
private static bool IsActivationKeyword(Query query)
|
||||
{
|
||||
return !string.IsNullOrEmpty(query?.ActionKeyword)
|
||||
&& query?.ActionKeyword == query?.RawQuery;
|
||||
}
|
||||
|
||||
public void Init(PluginInitContext context)
|
||||
{
|
||||
Context = context ?? throw new ArgumentNullException(nameof(context));
|
||||
|
||||
Reference in New Issue
Block a user