Refactor code, ensure websocket connection (and @ObservableObject updates) occur on main thread
This commit is contained in:
1 parent
ba42ff1207
commit
0a8670ed71
3 files changed
+72
-78
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user