Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #7733: Allow Custom Search Engines to be default in Private Mode (#…
Browse files Browse the repository at this point in the history
…7734)

Allowing custom Search Engines be default search engine for private mode
  • Loading branch information
soner-yuksel authored and iccub committed Jul 14, 2023
1 parent feb95c9 commit e8e37a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class SearchSuggestionDataSource {

func querySuggestClient() {
// Do not query suggestions if user is not opt_ed in
if !Preferences.Search.shouldShowSuggestionsOptIn.value {
if !Preferences.Search.showSuggestions.value {
Logger.module.info("Suggestions are not enabled")
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ class SearchSettingsTableViewController: UITableViewController {
.sorted { $0.shortName < $1.shortName }
.sorted { engine, _ in engine.shortName == OpenSearchEngine.EngineNames.brave }

if isPrivate {
orderedEngines =
orderedEngines
.filter { !$0.isCustomEngine || $0.engineID == OpenSearchEngine.migratedYahooEngineID }
}

if let priorityEngine = InitialSearchEngines().priorityEngine?.rawValue {
orderedEngines =
orderedEngines
Expand Down

0 comments on commit e8e37a8

Please sign in to comment.