From 4edd91de231e847d5f8a35c23a8aad96ba299dfb Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 7 Jul 2017 13:37:02 +0200 Subject: [PATCH] Fig passing signals to topbar Topbar is now in the lead on whether the print monitor should be shown or not. As it should be. Contributes to issue CURA-4010. --- resources/qml/Cura.qml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index b1e5c8f2f2..2c76bb0914 100755 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -1,4 +1,4 @@ -// Copyright (c) 2015 Ultimaker B.V. +// Copyright (c) 2017 Ultimaker B.V. // Cura is released under the terms of the AGPLv3 or higher. import QtQuick 2.2 @@ -25,7 +25,14 @@ UM.MainWindow target: Printer onShowPrintMonitor: { - base.showPrintMonitor = show; + if (show) + { + topbar.startMonitoringPrint() + } + else + { + topbar.stopMonitoringPrint() + } } }