mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:49:01 +08:00
After first start (no machine added) the controls on right side are invisible
CURA-4357
This commit is contained in:
parent
e1f8676cac
commit
ea65457920
@ -16,6 +16,7 @@ Rectangle
|
|||||||
|
|
||||||
property int currentModeIndex;
|
property int currentModeIndex;
|
||||||
property bool hideSettings: PrintInformation.preSliced
|
property bool hideSettings: PrintInformation.preSliced
|
||||||
|
property bool hideView: Cura.MachineManager.activeMachineName == ""
|
||||||
|
|
||||||
// Is there an output device for this printer?
|
// Is there an output device for this printer?
|
||||||
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
||||||
@ -123,7 +124,7 @@ Rectangle
|
|||||||
width: parent.width * 0.45
|
width: parent.width * 0.45
|
||||||
font: UM.Theme.getFont("large")
|
font: UM.Theme.getFont("large")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
visible: !monitoringPrint
|
visible: !monitoringPrint && !hideView
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@ -145,7 +146,7 @@ Rectangle
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
anchors.topMargin: UM.Theme.getSize("sidebar_margin").height
|
anchors.topMargin: UM.Theme.getSize("sidebar_margin").height
|
||||||
visible: !monitoringPrint && !hideSettings
|
visible: !monitoringPrint && !hideSettings && !hideView
|
||||||
Component{
|
Component{
|
||||||
id: wizardDelegate
|
id: wizardDelegate
|
||||||
Button {
|
Button {
|
||||||
|
@ -27,6 +27,7 @@ Item
|
|||||||
|
|
||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
|
visible: Cura.MachineManager.activeMachineName != "" // If no printers added then the view is invisible
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
style: UM.Theme.styles.scrollview
|
style: UM.Theme.styles.scrollview
|
||||||
flickableItem.flickableDirection: Flickable.VerticalFlick
|
flickableItem.flickableDirection: Flickable.VerticalFlick
|
||||||
|
Loading…
x
Reference in New Issue
Block a user