Merge pull request #516 from amnezia-vpn/bugfix/easy-setup-default-container

fixed easy setup default container selection
This commit is contained in:
pokamest 2024-01-20 09:18:57 -08:00 committed by GitHub
commit f9123e7b71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,12 +117,14 @@ PageType {
}
}
}
}
Component.onCompleted: {
if (index === containers.currentIndex) {
card.checked = true
card.clicked()
}
Component.onCompleted: {
var item = containers.itemAtIndex(containers.currentIndex)
if (item !== null) {
var button = item.children[0].children[0]
button.checked = true
button.clicked()
}
}
}