mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
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:
parent
d277b16807
commit
4edd91de23
1 changed files with 9 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue