From cf04ee98ef403674815d393e488c2acf6692ea26 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 3 Apr 2019 15:04:59 +0200 Subject: [PATCH] Fix being able to add a local machine that is not the first in the list CURA-6057 --- resources/qml/WelcomePages/AddLocalPrinterScrollView.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/qml/WelcomePages/AddLocalPrinterScrollView.qml b/resources/qml/WelcomePages/AddLocalPrinterScrollView.qml index d55d8f84ae..6fa50c69a1 100644 --- a/resources/qml/WelcomePages/AddLocalPrinterScrollView.qml +++ b/resources/qml/WelcomePages/AddLocalPrinterScrollView.qml @@ -27,7 +27,6 @@ ScrollView ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.vertical.policy: ScrollBar.AsNeeded - property int maxItemCountAtOnce: 10 // show at max 10 items at once, otherwise you need to scroll. height: maxItemCountAtOnce * UM.Theme.getSize("action_button").height @@ -139,6 +138,13 @@ ScrollView height: visible ? UM.Theme.getSize("standard_list_lineheight").height : 0 checked: ListView.view.currentIndex == index + onCheckedChanged: + { + if(checked) + { + machineList.currentIndex = index + } + } text: name visible: base.currentSection == section }