From ea654579204fb60d90f6a6edafd9fdd5e38504c4 Mon Sep 17 00:00:00 2001 From: alekseisasin Date: Fri, 22 Sep 2017 14:45:23 +0200 Subject: [PATCH] After first start (no machine added) the controls on right side are invisible CURA-4357 --- resources/qml/Sidebar.qml | 5 +++-- resources/qml/SidebarSimple.qml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/qml/Sidebar.qml b/resources/qml/Sidebar.qml index 2db3bed7c4..cdfe5e7a81 100755 --- a/resources/qml/Sidebar.qml +++ b/resources/qml/Sidebar.qml @@ -16,6 +16,7 @@ Rectangle property int currentModeIndex; property bool hideSettings: PrintInformation.preSliced + property bool hideView: Cura.MachineManager.activeMachineName == "" // Is there an output device for this printer? property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0 @@ -123,7 +124,7 @@ Rectangle width: parent.width * 0.45 font: UM.Theme.getFont("large") color: UM.Theme.getColor("text") - visible: !monitoringPrint + visible: !monitoringPrint && !hideView } Rectangle { @@ -145,7 +146,7 @@ Rectangle } } anchors.topMargin: UM.Theme.getSize("sidebar_margin").height - visible: !monitoringPrint && !hideSettings + visible: !monitoringPrint && !hideSettings && !hideView Component{ id: wizardDelegate Button { diff --git a/resources/qml/SidebarSimple.qml b/resources/qml/SidebarSimple.qml index 4063af322a..e53d07ae69 100644 --- a/resources/qml/SidebarSimple.qml +++ b/resources/qml/SidebarSimple.qml @@ -27,6 +27,7 @@ Item ScrollView { + visible: Cura.MachineManager.activeMachineName != "" // If no printers added then the view is invisible anchors.fill: parent style: UM.Theme.styles.scrollview flickableItem.flickableDirection: Flickable.VerticalFlick