chiark / gitweb /
Only prevent sleep if we are printing
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 31 Dec 2014 03:40:09 +0000 (22:40 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 31 Dec 2014 03:40:12 +0000 (22:40 -0500)
commit9079d991f0be6389a0c21af2e6ead5c9c10ed841
treec88a1f043b9b2587810cc9cce91b5a66fb9a1b7b
parentb82f4a8e7a728304b1ab5f8a5acd1831bf51bed7
Only prevent sleep if we are printing
Preventing sleep was happening whenever the print window was open
but it should prevent sleep only if we are printing.
If we close the print window though, it will re-enable sleep capabilities
because we wouldn't be able to know when the print has finished anymore
Cura/gui/printWindow.py