mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 19:23:14 +08:00
Minor change to QML
CURA-6144
This commit is contained in:
parent
43b81c70db
commit
c237222d3c
@ -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…
x
Reference in New Issue
Block a user