From 9dfc95bac0caaf188d9aaa93da17d0bd425ee217 Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Sat, 20 Jan 2024 23:28:20 +0700 Subject: [PATCH] fixed easy setup default container selection --- client/ui/qml/Pages2/PageSetupWizardEasy.qml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/ui/qml/Pages2/PageSetupWizardEasy.qml b/client/ui/qml/Pages2/PageSetupWizardEasy.qml index c393d0ce..f16eec40 100644 --- a/client/ui/qml/Pages2/PageSetupWizardEasy.qml +++ b/client/ui/qml/Pages2/PageSetupWizardEasy.qml @@ -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() } } }