mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Close the popup panel when the user clicks in some of the buttons in the
printer selector. Contributes to CURA-5942.
This commit is contained in:
parent
3434b30ee0
commit
b890e40e81
2 changed files with 11 additions and 2 deletions
|
@ -16,6 +16,7 @@ Item
|
||||||
property color materialColor
|
property color materialColor
|
||||||
property alias textColor: extruderNumberText.color
|
property alias textColor: extruderNumberText.color
|
||||||
property bool extruderEnabled: true
|
property bool extruderEnabled: true
|
||||||
|
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
id: mainIcon
|
id: mainIcon
|
||||||
|
|
|
@ -184,7 +184,11 @@ Cura.ExpandableComponent
|
||||||
hoverColor: UM.Theme.getColor("secondary")
|
hoverColor: UM.Theme.getColor("secondary")
|
||||||
textColor: UM.Theme.getColor("primary")
|
textColor: UM.Theme.getColor("primary")
|
||||||
textHoverColor: UM.Theme.getColor("text")
|
textHoverColor: UM.Theme.getColor("text")
|
||||||
onClicked: Cura.Actions.addMachine.trigger()
|
onClicked:
|
||||||
|
{
|
||||||
|
togglePopup()
|
||||||
|
Cura.Actions.addMachine.trigger()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.ActionButton
|
Cura.ActionButton
|
||||||
|
@ -196,7 +200,11 @@ Cura.ExpandableComponent
|
||||||
hoverColor: UM.Theme.getColor("secondary")
|
hoverColor: UM.Theme.getColor("secondary")
|
||||||
textColor: UM.Theme.getColor("primary")
|
textColor: UM.Theme.getColor("primary")
|
||||||
textHoverColor: UM.Theme.getColor("text")
|
textHoverColor: UM.Theme.getColor("text")
|
||||||
onClicked: Cura.Actions.configureMachines.trigger()
|
onClicked:
|
||||||
|
{
|
||||||
|
togglePopup()
|
||||||
|
Cura.Actions.configureMachines.trigger()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue