Skip to content

Commit

Permalink
Refactor web search plugin logic to remove fallback check for enabled…
Browse files Browse the repository at this point in the history
… searches
  • Loading branch information
qianlifeng committed Dec 1, 2024
1 parent 5764443 commit 1e81e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wox/plugin/system/websearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (r *WebSearchPlugin) Query(ctx context.Context, query plugin.Query) (result
otherQuery := strings.Join(queries[1:], " ")

for _, search := range r.webSearches {
if search.IsFallback || !search.Enabled {
if !search.Enabled {
continue
}
if strings.ToLower(search.Keyword) == strings.ToLower(triggerKeyword) {
Expand Down

0 comments on commit 1e81e77

Please sign in to comment.