We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentebcb698 commitcfefe70Copy full SHA for cfefe70
Coder-Desktop/Coder-Desktop/Views/VPN/VPNMenu.swift
@@ -117,12 +117,15 @@ struct VPNMenu<VPN: VPNService, FS: FileSyncDaemon>: View {
117
}
118
119
privatevarvpnDisabled:Bool{
120
- vpn.state==.connecting ||
121
- vpn.state==.disconnecting ||
122
- // Prevent starting the VPN before the user has approved the system extension.
123
- vpn.state==.failed(.systemExtensionError(.needsUserApproval)) ||
124
- // Prevent starting the VPN without a VPN configuration.
125
- vpn.state==.failed(.networkExtensionError(.unconfigured))
+ // Always enabled if signed out, as that will open the sign in window
+ state.hasSession &&(
+ vpn.state==.connecting ||
+ vpn.state==.disconnecting ||
+ // Prevent starting the VPN before the user has approved the system extension.
+ vpn.state==.failed(.systemExtensionError(.needsUserApproval)) ||
126
+ // Prevent starting the VPN without a VPN configuration.
127
+ vpn.state==.failed(.networkExtensionError(.unconfigured))
128
+)
129
130
131