File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Coder-Desktop/Coder-Desktop/Views/VPN Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,14 @@ struct VPNMenu<VPN: VPNService, FS: FileSyncDaemon>: View {
117
117
}
118
118
119
119
private var vpnDisabled : Bool {
120
+ // Always enabled if signed out, as that will open the sign in window
121
+ state. hasSession && (
120
122
vpn. state == . connecting ||
121
123
vpn. state == . disconnecting ||
122
124
// Prevent starting the VPN before the user has approved the system extension.
123
125
vpn. state == . failed( . systemExtensionError( . needsUserApproval) ) ||
124
126
// Prevent starting the VPN without a VPN configuration.
125
- vpn. state == . failed( . networkExtensionError( . unconfigured) )
127
+ vpn. state == . failed( . networkExtensionError( . unconfigured) ) )
126
128
}
127
129
}
128
130
You can’t perform that action at this time.
0 commit comments