mirror of https://github.com/Wox-launcher/Wox
Refactor web search plugin logic to remove fallback check for enabled searches
This commit is contained in:
parent
5764443362
commit
1e81e77327
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue