diff options
| author | Fuwn <[email protected]> | 2025-02-27 20:42:33 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-27 20:43:11 -0800 |
| commit | 9fb2796c1f488c235450d9c1ce38c40cd12a9b64 (patch) | |
| tree | 37434d822062a7ab650e84dea2d4e2602ddf3f46 /Sora/Views/MainView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-9fb2796c1f488c235450d9c1ce38c40cd12a9b64.tar.xz sora-testing-9fb2796c1f488c235450d9c1ce38c40cd12a9b64.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/MainView.swift')
| -rw-r--r-- | Sora/Views/MainView.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Sora/Views/MainView.swift b/Sora/Views/MainView.swift index 2e1ab2e..03612c9 100644 --- a/Sora/Views/MainView.swift +++ b/Sora/Views/MainView.swift @@ -12,8 +12,8 @@ struct MainView: View { .onChange(of: settings.preferredBooru) { _, newState in updateManager(newState) } - .onChange(of: settings.searchSuggestions) { _, newState in - if newState { + .onChange(of: settings.searchSuggestionsMode) { _, newState in + if newState != .disabled { refreshTags() } } @@ -72,7 +72,7 @@ struct MainView: View { } private func refreshTags() { - if settings.searchSuggestions { + if settings.searchSuggestionsMode != .disabled { Task { manager.initializeTags() } |