mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 23:03:13 +08:00
Remove usage of deprecated extruders property
Initially PyCharm didn't find this because it's not typed. Done during Turbo Testing and Tooling.
This commit is contained in:
parent
fc6867a4a0
commit
b68c3b7301
@ -178,8 +178,7 @@ class BaseMaterialsModel(ListModel):
|
|||||||
if global_stack is None or not self._enabled:
|
if global_stack is None or not self._enabled:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
extruder_position = str(self._extruder_position)
|
if self._extruder_position >= len(global_stack.extruderList):
|
||||||
if extruder_position not in global_stack.extruders:
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
@ -129,7 +129,6 @@ Item
|
|||||||
|
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
id: extruders
|
|
||||||
width: childrenRect.width
|
width: childrenRect.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
model: extrudersModel.items.length > 1 ? extrudersModel : 0
|
model: extrudersModel.items.length > 1 ? extrudersModel : 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user