Skip to content

Commit

Permalink
fix: !config and !reload is overwritten if the default field is e…
Browse files Browse the repository at this point in the history
…nabled
  • Loading branch information
Daydreamer-riri committed Apr 14, 2024
1 parent 25be608 commit 11144ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Community.PowerToys.Run.Plugin.WebSearchShortcut/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ public List<Result> Query(Query query, bool delayedExecution)
return ResetSuggestionsCache();
}

if (query.Search.Trim().Equals("!reload", StringComparison.OrdinalIgnoreCase) || query.Search.Trim().Equals("!config", StringComparison.OrdinalIgnoreCase))
{
return ResetSuggestionsCache();
}

List<Result> results = [];
var tokens = query.Search.Split(' ', 2, StringSplitOptions.RemoveEmptyEntries);

Expand Down

0 comments on commit 11144ac

Please sign in to comment.