UI: When saving on-demand rules, don't set isOnDemandEnabled

When adding or modifying a config, when on-demand options are set by a
user, the rules are saved, but isOnDemandEnabled is left unset (and can
be set by the appropriate control in the detail view (switch in iOS /
button in macOS)).

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2021-08-02 23:09:06 +05:30
parent b6831c1aca
commit 55c587b443
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ extension ActivateOnDemandOption {
}
}
tunnelProviderManager.onDemandRules = rules
tunnelProviderManager.isOnDemandEnabled = self != .off
tunnelProviderManager.isOnDemandEnabled = false
}
init(from tunnelProviderManager: NETunnelProviderManager) {