diff options
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridView.swift | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift index 5f8611a..eb71ee6 100644 --- a/Sora/Views/Post/Grid/PostGridView.swift +++ b/Sora/Views/Post/Grid/PostGridView.swift @@ -55,9 +55,7 @@ struct PostGridView: View { } .onChange(of: manager.searchText) { _, _ in if manager.searchText.isEmpty, !isSearching { - Task { - manager.performSearch() - } + Task { manager.performSearch() } } } .toolbar { @@ -92,13 +90,9 @@ struct PostGridView: View { if !manager.tags.isEmpty { #if os(macOS) - ToolbarItem { - PostGridBookmarkButtonView() - } + ToolbarItem { PostGridBookmarkButtonView() } #else - ToolbarItem(placement: .bottomBar) { - PostGridBookmarkButtonView() - } + ToolbarItem(placement: .bottomBar) { PostGridBookmarkButtonView() } #endif } } |