mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 16:33:15 +08:00
Use setCurrentIndex instead of direct assignment
This should prevent the binding from breaking and hopefully the segfault CURA-5876
This commit is contained in:
parent
780e5e1691
commit
a62da4e523
@ -76,7 +76,7 @@ Item
|
|||||||
target: repeater.model
|
target: repeater.model
|
||||||
onModelChanged:
|
onModelChanged:
|
||||||
{
|
{
|
||||||
tabBar.currentIndex = Math.max(Cura.ExtruderManager.activeExtruderIndex, 0)
|
tabBar.setCurrentIndex(Cura.ExtruderManager.activeExtruderIndex)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user