mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Add toggle function to expandable popup
Also ensures that the machineSelector closes the popup on making a choice CURA-5785
This commit is contained in:
parent
f0b8c1e611
commit
eca9820fc4
2 changed files with 25 additions and 3 deletions
|
@ -77,8 +77,12 @@ Cura.ExpandableComponent
|
|||
width: parent.width
|
||||
|
||||
checkable: true
|
||||
onClicked: Cura.MachineManager.setActiveMachine(model.id)
|
||||
radius: UM.Theme.getSize("default_radius").width
|
||||
onClicked:
|
||||
{
|
||||
togglePopup()
|
||||
Cura.MachineManager.setActiveMachine(model.id)
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
|
@ -114,8 +118,13 @@ Cura.ExpandableComponent
|
|||
width: parent.width
|
||||
checked: Cura.MachineManager.activeMachineId == model.id
|
||||
checkable: true
|
||||
onClicked: Cura.MachineManager.setActiveMachine(model.id)
|
||||
|
||||
radius: UM.Theme.getSize("default_radius").width
|
||||
onClicked:
|
||||
{
|
||||
togglePopup()
|
||||
Cura.MachineManager.setActiveMachine(model.id)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue