mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix being able to add a local machine that is not the first in the list
CURA-6057
This commit is contained in:
parent
ffce5b8d58
commit
cf04ee98ef
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue