File tree Expand file tree Collapse file tree
DevLog/UI/PushNotification Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,7 +191,9 @@ struct PushNotificationListView: View {
191191 }
192192
193193 Button {
194- viewModel. send ( . toggleSortOption)
194+ DispatchQueue . main. async {
195+ viewModel. send ( . toggleSortOption)
196+ }
195197 } label: {
196198 let condition = viewModel. state. query. sortOrder == . oldest
197199 Text (
@@ -200,8 +202,8 @@ struct PushNotificationListView: View {
200202 viewModel. state. query. sortOrder. title
201203 )
202204 )
203- . foregroundStyle ( condition ? . white : Color ( . label) )
204- . adaptiveButtonStyle ( color: condition ? . blue : . clear)
205+ . foregroundStyle ( condition ? . white : Color ( . label) )
206+ . adaptiveButtonStyle ( color: condition ? . blue : . clear)
205207 }
206208
207209 Menu {
@@ -226,7 +228,9 @@ struct PushNotificationListView: View {
226228 }
227229
228230 Button {
229- viewModel. send ( . toggleUnreadOnly)
231+ DispatchQueue . main. async {
232+ viewModel. send ( . toggleUnreadOnly)
233+ }
230234 } label: {
231235 let condition = viewModel. state. query. unreadOnly
232236 Text ( String ( localized: " push_unread " ) )
You can’t perform that action at this time.
0 commit comments