mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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.
|
// 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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue