Fix tabs when automatically switching to the monitor tab (on print start)

CURA-1036
This commit is contained in:
fieldOfView 2016-07-08 11:22:07 +02:00
parent 802e0b14b2
commit 2f3ffe2a18

View File

@ -18,7 +18,12 @@ Rectangle
Connections Connections
{ {
target: Printer target: Printer
onShowPrintMonitor: base.monitoringPrint = show onShowPrintMonitor:
{
base.monitoringPrint = show;
showSettings.checked = !show;
showMonitor.checked = show;
}
} }
// Is there an output device for this printer? // Is there an output device for this printer?
@ -83,6 +88,7 @@ Rectangle
anchors.right: parent.right anchors.right: parent.right
Button Button
{ {
id: showSettings
width: (parent.width - UM.Theme.getSize("default_margin").width) / 2 width: (parent.width - UM.Theme.getSize("default_margin").width) / 2
height: UM.Theme.getSize("sidebar_header").height height: UM.Theme.getSize("sidebar_header").height
onClicked: monitoringPrint = false onClicked: monitoringPrint = false
@ -95,6 +101,7 @@ Rectangle
} }
Button Button
{ {
id: showMonitor
width: (parent.width - UM.Theme.getSize("default_margin").width) / 2 width: (parent.width - UM.Theme.getSize("default_margin").width) / 2
height: UM.Theme.getSize("sidebar_header").height height: UM.Theme.getSize("sidebar_header").height
onClicked: monitoringPrint = true onClicked: monitoringPrint = true