Rewrite menu bar extra with AppKit
This commit is contained in:
@@ -63,7 +63,9 @@ public struct ConnectionListView: View {
|
||||
viewModel.connect()
|
||||
}
|
||||
.onReceive(environments.commandClient.$connections) { connections in
|
||||
viewModel.setConnections(connections)
|
||||
Task { @MainActor in
|
||||
viewModel.setConnections(connections)
|
||||
}
|
||||
}
|
||||
.onChangeCompat(of: viewModel.connectionStateFilter) { filter in
|
||||
environments.commandClient.connectionStateFilter = filter
|
||||
|
||||
Reference in New Issue
Block a user