Добавь ручной и автоматический режимы VPN
This commit is contained in:
@@ -92,10 +92,14 @@ struct VPNMenuView: View {
|
||||
Label("VPN отключён", systemImage: "circle")
|
||||
.disabled(true)
|
||||
Divider()
|
||||
Button("Подключить") {
|
||||
vpnManager.connect()
|
||||
Button("Подключить автоматически") {
|
||||
vpnManager.connect(mode: .auto)
|
||||
}
|
||||
.keyboardShortcut("c")
|
||||
Button("Подключить вручную") {
|
||||
vpnManager.connect(mode: .manual)
|
||||
}
|
||||
.keyboardShortcut("m")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user