mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 06:09:38 +08:00
Remove usage of deprecated functions
This commit is contained in:
parent
c3a373e2a2
commit
c786770a44
@ -70,8 +70,8 @@ Item
|
||||
OldControls.ToolButton
|
||||
{
|
||||
id: printerTypeSelector
|
||||
text: Cura.MachineManager.activeMachineDefinitionName
|
||||
tooltip: Cura.MachineManager.activeMachineDefinitionName
|
||||
text: Cura.MachineManager.activeMachine.definition.name
|
||||
tooltip: text
|
||||
height: UM.Theme.getSize("print_setup_big_item").height
|
||||
width: Math.round(parent.width * 0.7) + UM.Theme.getSize("default_margin").width
|
||||
anchors.right: parent.right
|
||||
|
@ -22,7 +22,7 @@ Menu
|
||||
{
|
||||
text: modelData.machine_type
|
||||
checkable: true
|
||||
checked: Cura.MachineManager.activeMachineDefinitionName == modelData.machine_type
|
||||
checked: Cura.MachineManager.activeMachine.definition.name == modelData.machine_type
|
||||
exclusiveGroup: group
|
||||
onTriggered:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user