From dc855689734b70109d670a9f7f19e2741b3e4433 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 21 Aug 2018 13:52:09 +0200 Subject: [PATCH] Printer tiles in sidepanel can now be collapsed even if no job is active CL-893 --- plugins/UM3NetworkPrinting/ClusterControlItem.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/UM3NetworkPrinting/ClusterControlItem.qml b/plugins/UM3NetworkPrinting/ClusterControlItem.qml index 6b5bb90479..2d37142935 100644 --- a/plugins/UM3NetworkPrinting/ClusterControlItem.qml +++ b/plugins/UM3NetworkPrinting/ClusterControlItem.qml @@ -81,7 +81,6 @@ Component { anchors.fill: parent onClicked: base.collapsed = !base.collapsed - enabled: modelData.activePrintJob != null } Rectangle @@ -110,7 +109,6 @@ Component id: collapseIcon width: 15 height: 15 - visible: modelData.activePrintJob != null sourceSize.width: width sourceSize.height: height source: base.collapsed ? UM.Theme.getIcon("arrow_left") : UM.Theme.getIcon("arrow_bottom") @@ -199,11 +197,14 @@ Component Item { id: jobInfo + property var showJobInfo: modelData.activePrintJob != null && modelData.activePrintJob.state != "queued" + anchors.top: jobSpacer.bottom anchors.left: parent.left anchors.right: parent.right 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 { id: printJobName