disabled the ability to change the protocol/server when a vpn connection is active

This commit is contained in:
vladimir.kuznetsov 2023-10-16 22:57:12 +05:00
parent e01b1db706
commit 9eb23e38bd
5 changed files with 41 additions and 23 deletions

View file

@ -471,10 +471,16 @@ PageType {
}
checked: index === serversMenuContent.currentIndex
checkable: !ConnectionController.isConnected
ButtonGroup.group: serversRadioButtonGroup
onClicked: {
if (ConnectionController.isConnected) {
PageController.showNotificationMessage(qsTr("Unable change server while there is an active connection"))
return
}
serversMenuContent.currentIndex = index
ServersModel.currentlyProcessedIndex = index