Simplified process startup on macOS and Linux
This commit is contained in:
parent
9e03c9680c
commit
7cc1f3119e
40 changed files with 1343 additions and 1157 deletions
|
|
@ -39,10 +39,10 @@ extension Tunnel {
|
|||
var isOn: Binding<Bool> {
|
||||
Binding {
|
||||
switch self.status {
|
||||
case .unknown, .disabled, .disconnecting, .disconnected, .invalid, .permissionRequired, .configurationReadWriteFailed:
|
||||
return false
|
||||
case .connecting, .reasserting, .connected:
|
||||
return true
|
||||
true
|
||||
default:
|
||||
false
|
||||
}
|
||||
} set: { newValue in
|
||||
switch (self.status, newValue) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue