Merge pull request #529 from amnezia-vpn/bugfix/container-selection-after-cleanup-server

fixed first container selection on HomeContainersListView after server cleanup
This commit is contained in:
pokamest
2024-01-28 02:56:16 -08:00
committed by GitHub
2 changed files with 6 additions and 6 deletions
@@ -30,7 +30,9 @@ ListView {
target: ServersModel
function onCurrentlyProcessedServerIndexChanged() {
menuContent.checkCurrentItem()
if (ContainersModel.getDefaultContainer()) {
menuContent.checkCurrentItem()
}
}
}
@@ -76,9 +78,8 @@ ListView {
}
if (checked) {
ServersModel.setDefaultContainer(proxyContainersModel.mapToSource(index))
containersDropDown.menuVisible = false
ServersModel.setDefaultContainer(proxyContainersModel.mapToSource(index))
} else {
if (!isSupported && isInstalled) {
PageController.showErrorMessage(qsTr("The selected protocol is not supported on the current platform"))