CURA-4341 add bi-directional signal to update topbar when monitoring

This commit is contained in:
ChrisTerBeke 2017-09-22 13:11:57 +02:00
parent 0fa3bdd68b
commit b748bf2011
2 changed files with 18 additions and 2 deletions

View file

@ -25,8 +25,11 @@ UM.MainWindow
target: Printer
onShowPrintMonitor:
{
topbar.monitoringChanged(show)
if (show)
{
topbar.startMonitoringPrint()
}
else
@ -349,13 +352,17 @@ UM.MainWindow
}
}
function isMonitoringPrint () {
return base.showPrintMonitor
}
Topbar
{
id: topbar
anchors.left:parent.left
anchors.right: parent.right
anchors.top: parent.top
monitoringPrint: base.showPrintMonitor
monitoringPrint: isMonitoringPrint()
onStartMonitoringPrint: base.showPrintMonitor = true
onStopMonitoringPrint: base.showPrintMonitor = false
}