mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Minor change to QML
CURA-6144
This commit is contained in:
parent
43b81c70db
commit
c237222d3c
1 changed files with 4 additions and 2 deletions
|
@ -97,15 +97,17 @@ Item
|
|||
// knowing the extruder position, try to find the item index in the model
|
||||
function getIndexByPosition(position)
|
||||
{
|
||||
var itemIndex = -1 // if position is not found, return -1
|
||||
for (var item_index in model.items)
|
||||
{
|
||||
var item = model.getItem(item_index)
|
||||
if (item.index == position)
|
||||
{
|
||||
return item_index
|
||||
itemIndex = item_index
|
||||
break
|
||||
}
|
||||
}
|
||||
return -1
|
||||
return itemIndex
|
||||
}
|
||||
|
||||
onActivated:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue