Added signal to prevent window closing if USB printer is printing

CURA-5384
This commit is contained in:
Aleksei S 2018-07-11 13:23:30 +02:00
parent c36d089113
commit 596a7b7169
4 changed files with 83 additions and 1 deletions

View file

@ -22,6 +22,12 @@ UM.MainWindow
backgroundColor: UM.Theme.getColor("viewport_background")
// Event which does the check before closing the window
onPreCloseChange:
{
event.accepted = CuraApplication.preCloseEventHandler()
}
// 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