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.
This commit is contained in:
Ghostkeeper 2017-07-07 13:37:02 +02:00
parent d277b16807
commit 4edd91de23
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -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. // Cura is released under the terms of the AGPLv3 or higher.
import QtQuick 2.2 import QtQuick 2.2
@ -25,7 +25,14 @@ UM.MainWindow
target: Printer target: Printer
onShowPrintMonitor: onShowPrintMonitor:
{ {
base.showPrintMonitor = show; if (show)
{
topbar.startMonitoringPrint()
}
else
{
topbar.stopMonitoringPrint()
}
} }
} }