mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
fixed first container selection on HomeContainersListView after server cleanup
This commit is contained in:
@@ -30,7 +30,9 @@ ListView {
|
|||||||
target: ServersModel
|
target: ServersModel
|
||||||
|
|
||||||
function onCurrentlyProcessedServerIndexChanged() {
|
function onCurrentlyProcessedServerIndexChanged() {
|
||||||
menuContent.checkCurrentItem()
|
if (ContainersModel.getDefaultContainer()) {
|
||||||
|
menuContent.checkCurrentItem()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,9 +78,8 @@ ListView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (checked) {
|
if (checked) {
|
||||||
ServersModel.setDefaultContainer(proxyContainersModel.mapToSource(index))
|
|
||||||
|
|
||||||
containersDropDown.menuVisible = false
|
containersDropDown.menuVisible = false
|
||||||
|
ServersModel.setDefaultContainer(proxyContainersModel.mapToSource(index))
|
||||||
} else {
|
} else {
|
||||||
if (!isSupported && isInstalled) {
|
if (!isSupported && isInstalled) {
|
||||||
PageController.showErrorMessage(qsTr("The selected protocol is not supported on the current platform"))
|
PageController.showErrorMessage(qsTr("The selected protocol is not supported on the current platform"))
|
||||||
|
|||||||
Reference in New Issue
Block a user