Skip to content

Commit d4961f6

Browse files
committed
fmt
1 parent 63befc5 commit d4961f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Coder Desktop/Coder Desktop/VPNMenuState.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct VPNMenuState {
105105
mutating func upsertWorkspace(_ workspace: Vpn_Workspace) {
106106
guard let wsID = UUID(uuidData: workspace.id) else { return }
107107
// Workspace names are unique & case-insensitive, and we want to show offline workspaces
108-
// with a valid hostname (lowercase).
108+
// with a valid hostname (lowercase).
109109
workspaces[wsID] = Workspace(id: wsID, name: workspace.name.lowercased(), agents: [])
110110
// Check if we can associate any invalid agents with this workspace
111111
invalidAgents.filter { agent in

Coder Desktop/Coder Desktop/Views/VPNMenu.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct VPNMenu<VPN: VPNService>: View {
8686
}
8787

8888
private var vpnDisabled: Bool {
89-
!session.hasSession ||
89+
!state.hasSession ||
9090
vpn.state == .connecting ||
9191
vpn.state == .disconnecting ||
9292
vpn.state == .failed(.systemExtensionError(.needsUserApproval))

0 commit comments

Comments
 (0)