Add confirmation popup for strict killswitch mode
This commit is contained in:
parent
298c9fef9d
commit
97dc075f73
1 changed files with 14 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ PageType {
|
||||||
text: qsTr("Soft KillSwitch")
|
text: qsTr("Soft KillSwitch")
|
||||||
descriptionText: qsTr("Internet connection is blocked if VPN connection drops accidentally")
|
descriptionText: qsTr("Internet connection is blocked if VPN connection drops accidentally")
|
||||||
|
|
||||||
onClicked: {
|
onClicked: function() {
|
||||||
SettingsController.strictKillSwitchEnabled = false
|
SettingsController.strictKillSwitchEnabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -87,9 +87,20 @@ PageType {
|
||||||
text: qsTr("Strict KillSwitch")
|
text: qsTr("Strict KillSwitch")
|
||||||
descriptionText: qsTr("Internet connection is blocked even if VPN was turned off manually or not started")
|
descriptionText: qsTr("Internet connection is blocked even if VPN was turned off manually or not started")
|
||||||
|
|
||||||
onClicked: {
|
onClicked: function() {
|
||||||
|
var headerText = qsTr("Just a little heads-up")
|
||||||
|
var descriptionText = qsTr("If you disconnect from VPN or the VPN connection drops while the Strict Kill Switch is turned on, your internet access will be disabled. To restore it, connect to VPN, change the Kill Switch mode or turn the Kill Switch off.")
|
||||||
|
var yesButtonText = qsTr("Continue")
|
||||||
|
var noButtonText = qsTr("Cancel")
|
||||||
|
|
||||||
|
var yesButtonFunction = function() {
|
||||||
SettingsController.strictKillSwitchEnabled = true
|
SettingsController.strictKillSwitchEnabled = true
|
||||||
}
|
}
|
||||||
|
var noButtonFunction = function() {
|
||||||
|
}
|
||||||
|
|
||||||
|
showQuestionDrawer(headerText, descriptionText, yesButtonText, noButtonText, yesButtonFunction, noButtonFunction)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DividerType {}
|
DividerType {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue