Comment old code

This commit is contained in:
Davide De Rosa 2021-06-26 09:56:55 +02:00
parent c1f169b239
commit 7203eea0a2
1 changed files with 8 additions and 8 deletions

View File

@ -180,14 +180,14 @@ class ServiceViewController: NSViewController {
return
}
let status: VPNStatus
if service.isActiveProfile(profile) {
status = vpn.status ?? .disconnected
} else {
// force reconnection when activating a different profile
status = .disconnected
}
// let status: VPNStatus
// if service.isActiveProfile(profile) {
// status = vpn.status ?? .disconnected
// } else {
//
// // force reconnection when activating a different profile
// status = .disconnected
// }
service.activateProfile(profile)
if !vpn.isEnabled {