Refactor code, ensure websocket connection (and @ObservableObject updates) occur on main thread

This commit is contained in:
Madeline
2023-03-20 20:31:18 -04:00
parent ba42ff1207
commit 0a8670ed71
3 changed files with 72 additions and 78 deletions

View File

@@ -33,7 +33,7 @@ struct PrinterConfigView: View {
HStack {
Text(result.endpoint.toFriendlyString())
Button {
printerManager.resolveBonjourHost(result.endpoint)
printerManager.connectToBonjourEndpoint(result.endpoint)
} label: {
Text("Connect")
.foregroundColor(.white)