Added Cura.MachineSelector in place of combobox

combobox seemed to be tampering with the mouse area of machineselector

CURA-11700
This commit is contained in:
Saumya Jain 2024-03-14 11:45:15 +01:00
parent 9f952b91c3
commit 9604674c8b

View file

@ -103,12 +103,17 @@ UM.Dialog
comboboxTitle: catalog.i18nc("@action:label", "Open With") comboboxTitle: catalog.i18nc("@action:label", "Open With")
comboboxTooltipText: catalog.i18nc("@info:tooltip", "Printer settings will be updated to match the settings saved with the project.") comboboxTooltipText: catalog.i18nc("@info:tooltip", "Printer settings will be updated to match the settings saved with the project.")
comboboxVisible: workspaceDialog.visible && manager.updatableMachinesModel.count > 1 comboboxVisible: workspaceDialog.visible && manager.updatableMachinesModel.count > 1
combobox: Cura.MachineSelector Cura.MachineSelector
{ {
id: machineSelector id: machineSelector
visible: comboboxVisible
headerCornerSide: Cura.RoundedRectangle.Direction.All headerCornerSide: Cura.RoundedRectangle.Direction.All
width: parent.width anchors.top: parent.top
height: parent.height anchors.topMargin: UM.Theme.getSize("default_margin").width * 3
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width
width: UM.Theme.getSize("machine_selector_widget").width
height: UM.Theme.getSize("machine_selector_widget").height
machineListModel: manager.updatableMachinesModel machineListModel: manager.updatableMachinesModel
machineName: manager.machineName machineName: manager.machineName