mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 05:23:16 +08: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,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…
x
Reference in New Issue
Block a user