mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Set stage icon for monitor depending on output device state, prevent crash when accessing back-end from unloaded component
This commit is contained in:
parent
dd92d8d5e0
commit
f91a4db617
3 changed files with 38 additions and 41 deletions
|
@ -46,7 +46,7 @@ Item {
|
|||
}
|
||||
|
||||
function sliceOrStopSlicing() {
|
||||
if ([1, 5].indexOf(UM.Backend.state) != -1) {
|
||||
if (backend != "undefined" && [1, 5].indexOf(UM.Backend.state) != -1) {
|
||||
backend.forceSlice();
|
||||
} else {
|
||||
backend.stopSlicing();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue