Merge branch 'feature/new-gui' of github.com:amnezia-vpn/amnezia-client into HEAD

This commit is contained in:
vladimir.kuznetsov 2023-09-14 21:26:13 +05:00
commit c0aca97083
3 changed files with 20 additions and 1 deletions

View file

@ -61,9 +61,24 @@ ListView {
onClicked: {
if (checked) {
var needReconnected = false
if (!isDefault) {
needReconnected = true
}
isDefault = true
menuContent.currentIndex = index
containersDropDown.menuVisible = false
if (needReconnected &&
(ConnectionController.isConnected || ConnectionController.isConnectionInProgress)) {
PageController.showNotificationMessage(qsTr("Reconnect via VPN Procotol: ") + name)
PageController.goToPageHome()
menu.visible = false
ConnectionController.openConnection()
}
} else {
ContainersModel.setCurrentlyProcessedContainerIndex(proxyContainersModel.mapToSource(index))
InstallController.setShouldCreateServer(false)