mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Remove usage of deprecated functions
This commit is contained in:
parent
c3a373e2a2
commit
c786770a44
2 changed files with 3 additions and 3 deletions
|
@ -70,8 +70,8 @@ Item
|
||||||
OldControls.ToolButton
|
OldControls.ToolButton
|
||||||
{
|
{
|
||||||
id: printerTypeSelector
|
id: printerTypeSelector
|
||||||
text: Cura.MachineManager.activeMachineDefinitionName
|
text: Cura.MachineManager.activeMachine.definition.name
|
||||||
tooltip: Cura.MachineManager.activeMachineDefinitionName
|
tooltip: text
|
||||||
height: UM.Theme.getSize("print_setup_big_item").height
|
height: UM.Theme.getSize("print_setup_big_item").height
|
||||||
width: Math.round(parent.width * 0.7) + UM.Theme.getSize("default_margin").width
|
width: Math.round(parent.width * 0.7) + UM.Theme.getSize("default_margin").width
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
|
@ -22,7 +22,7 @@ Menu
|
||||||
{
|
{
|
||||||
text: modelData.machine_type
|
text: modelData.machine_type
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: Cura.MachineManager.activeMachineDefinitionName == modelData.machine_type
|
checked: Cura.MachineManager.activeMachine.definition.name == modelData.machine_type
|
||||||
exclusiveGroup: group
|
exclusiveGroup: group
|
||||||
onTriggered:
|
onTriggered:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue