mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-29 12:02:11 +00:00
Do not confirm trusted policy change while offline
This commit is contained in:
parent
ebbba3a713
commit
8375fc58fc
@ -275,11 +275,14 @@ class ServiceViewController: UIViewController, TableModelHost {
|
||||
self.vpn.reinstall(completionHandler: nil)
|
||||
}
|
||||
}
|
||||
|
||||
guard !isOn else {
|
||||
completionHandler()
|
||||
return
|
||||
}
|
||||
guard vpn.isEnabled else {
|
||||
completionHandler()
|
||||
return
|
||||
}
|
||||
let alert = Macros.alert(
|
||||
L10n.Service.Sections.Trusted.header,
|
||||
L10n.Service.Alerts.Trusted.WillDisconnectPolicy.message
|
||||
|
Loading…
Reference in New Issue
Block a user