fixed current processed server selection after import/install new server

This commit is contained in:
vladimir.kuznetsov 2024-01-09 00:25:18 +07:00
parent 4f7ba4c9a8
commit 2a03834bb2
5 changed files with 24 additions and 0 deletions

View file

@ -26,6 +26,22 @@ ListView {
id: containersRadioButtonGroup
}
Connections {
target: ServersModel
function onCurrentlyProcessedServerIndexChanged() {
menuContent.checkCurrentItem()
}
}
function checkCurrentItem() {
var item = menuContent.itemAtIndex(currentIndex)
if (item !== null) {
var radioButton = item.children[0].children[0]
radioButton.checked = true
}
}
delegate: Item {
implicitWidth: rootWidth
implicitHeight: content.implicitHeight