CURA-4870 Make the configuration selector only available for network

printers.
Show the connection icon also for printers connected via USB or
Octoprint.
This commit is contained in:
Diego Prado Gesto 2018-03-14 17:00:39 +01:00
parent 7c875c154f
commit 1cf832653c
2 changed files with 23 additions and 22 deletions

View file

@ -87,7 +87,8 @@ Rectangle
}
}
MachineSelection {
MachineSelection
{
id: machineSelection
width: base.width - configSelection.width - separator.width
height: UM.Theme.getSize("sidebar_header").height
@ -105,9 +106,10 @@ Rectangle
anchors.left: machineSelection.right
}
ConfigurationSelection {
ConfigurationSelection
{
id: configSelection
visible: isNetworkPrinter && !sidebar.monitoringPrint && !sidebar.hideSettings
visible: isNetworkPrinter
width: visible ? Math.round(base.width * 0.15) : 0
height: UM.Theme.getSize("sidebar_header").height
anchors.top: base.top