Merge pull request #809 from yattee/refactor-search

refactor Search
This commit is contained in:
Arkadiusz Fal
2024-09-11 09:29:43 +02:00
committed by GitHub
13 changed files with 334 additions and 153 deletions

View File

@@ -46,6 +46,10 @@ struct BrowsingSettingsGroupImporter {
Defaults[.startupSection] = startupSection
}
if let showSearchSuggestions = json["showSearchSuggestions"].bool {
Defaults[.showSearchSuggestions] = showSearchSuggestions
}
if let visibleSections = json["visibleSections"].array {
let sections = visibleSections.compactMap { visibleSectionJSON in
if let visibleSectionString = visibleSectionJSON.rawString(options: []),