mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 18:33:13 +08:00
Remove unnecessary Catalog and SettingPropertyProvider
This commit is contained in:
parent
b4f27f0af7
commit
80bf6988ca
@ -69,10 +69,11 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item { height: UM.Theme.getSize("default_margin").height; width: 1; visible: machineExtruderCount.properties.value > 1 }
|
Item { height: UM.Theme.getSize("default_margin").height; width: 1; visible: extruders.count > 0 }
|
||||||
|
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
|
id: extruders
|
||||||
model: Cura.ExtrudersModel { id: extrudersModel }
|
model: Cura.ExtrudersModel { id: extrudersModel }
|
||||||
ExtruderButton { extruder: model }
|
ExtruderButton { extruder: model }
|
||||||
}
|
}
|
||||||
@ -156,15 +157,4 @@ Item
|
|||||||
|
|
||||||
visible: toolHint.text != "";
|
visible: toolHint.text != "";
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.SettingPropertyProvider
|
|
||||||
{
|
|
||||||
id: machineExtruderCount
|
|
||||||
|
|
||||||
containerStackId: Cura.MachineManager.activeMachineId
|
|
||||||
key: "machine_extruder_count"
|
|
||||||
watchedProperties: [ "value" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
UM.I18nCatalog { id: catalog; name: "cura" }
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user