mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Added signal to prevent window closing if USB printer is printing
CURA-5384
This commit is contained in:
parent
c36d089113
commit
596a7b7169
4 changed files with 83 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue