mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Add switch to monitor support for legacy plugin that emit signal to switch
This commit is contained in:
parent
9bf954643c
commit
c6e72abfbe
1 changed files with 15 additions and 0 deletions
|
@ -18,6 +18,21 @@ UM.MainWindow
|
|||
//: Cura application window title
|
||||
title: catalog.i18nc("@title:window","Ultimaker Cura");
|
||||
viewportRect: Qt.rect(0, 0, (base.width - sidebar.width) / base.width, 1.0)
|
||||
property bool showPrintMonitor: false
|
||||
|
||||
// This connection is here to support legacy printer output devices that use the showPrintMonitor signal on Application to switch to the monitor stage
|
||||
// It should be phased out in newer plugin versions.
|
||||
Connections
|
||||
{
|
||||
target: Printer
|
||||
onShowPrintMonitor: {
|
||||
if (show) {
|
||||
UM.Controller.setActiveStage("MonitorStage")
|
||||
} else {
|
||||
UM.Controller.setActiveStage("PrepareStage")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue