mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Printer tiles in sidepanel can now be collapsed even if no job is active
CL-893
This commit is contained in:
parent
6a08b63f21
commit
dc85568973
1 changed files with 4 additions and 3 deletions
|
@ -81,7 +81,6 @@ Component
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: base.collapsed = !base.collapsed
|
onClicked: base.collapsed = !base.collapsed
|
||||||
enabled: modelData.activePrintJob != null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
|
@ -110,7 +109,6 @@ Component
|
||||||
id: collapseIcon
|
id: collapseIcon
|
||||||
width: 15
|
width: 15
|
||||||
height: 15
|
height: 15
|
||||||
visible: modelData.activePrintJob != null
|
|
||||||
sourceSize.width: width
|
sourceSize.width: width
|
||||||
sourceSize.height: height
|
sourceSize.height: height
|
||||||
source: base.collapsed ? UM.Theme.getIcon("arrow_left") : UM.Theme.getIcon("arrow_bottom")
|
source: base.collapsed ? UM.Theme.getIcon("arrow_left") : UM.Theme.getIcon("arrow_bottom")
|
||||||
|
@ -199,11 +197,14 @@ Component
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: jobInfo
|
id: jobInfo
|
||||||
|
property var showJobInfo: modelData.activePrintJob != null && modelData.activePrintJob.state != "queued"
|
||||||
|
|
||||||
anchors.top: jobSpacer.bottom
|
anchors.top: jobSpacer.bottom
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||||
height: childrenRect.height + UM.Theme.getSize("default_margin").height
|
height: showJobInfo ? childrenRect.height + UM.Theme.getSize("default_margin").height: 0
|
||||||
|
visible: showJobInfo
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: printJobName
|
id: printJobName
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue