Don't show camera icon unless printer details are expanded

Contributes to CL-1063
This commit is contained in:
Ian Paschal 2018-10-31 13:52:31 +01:00
parent a5c2a73487
commit 1ba8eff7fa
2 changed files with 23 additions and 46 deletions

View file

@ -28,18 +28,18 @@ Item {
right: parent.right;
rightMargin: UM.Theme.getSize("default_margin").width;
}
height: childrenRect.height + UM.Theme.getSize("wide_margin").height;
height: childrenRect.height + UM.Theme.getSize("default_margin").height;
spacing: UM.Theme.getSize("default_margin").height;
width: parent.width;
HorizontalLine {}
PrinterInfoBlock {
printer: root.printer;
printJob: root.printer ? root.printer.activePrintJob : null;
}
HorizontalLine {
visible: root.printJob;
}
HorizontalLine {}
Row {
height: childrenRect.height;
@ -65,5 +65,11 @@ Item {
job: root.printer && root.printer.activePrintJob ? root.printer.activePrintJob : null;
visible: root.printJob;
}
CameraButton {
id: showCameraButton;
iconSource: "../svg/camera-icon.svg";
visible: root.printer;
}
}
}