Fix in-app eligibility in VPN (#440)

This commit is contained in:
Davide De Rosa 2023-12-23 07:59:23 +01:00 committed by GitHub
parent 4c4876c5f7
commit 239d3e6853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -97,6 +97,9 @@ private extension AppContext {
coreContext.vpnManager.isOnDemandRulesSupported = {
self.isEligibleForOnDemandRules()
}
coreContext.vpnManager.isNetworkSettingsSupported = {
self.isEligibleForNetworkSettings()
}
coreContext.vpnManager.currentState.$vpnStatus
.removeDuplicates()

View File

@ -76,8 +76,8 @@ public final class VPNManager: ObservableObject {
self.profileManager = profileManager
self.providerManager = providerManager
self.strategy = strategy
isNetworkSettingsSupported = { true }
isOnDemandRulesSupported = { true }
isNetworkSettingsSupported = { false }
isOnDemandRulesSupported = { false }
currentState = ObservableVPNState()
}