mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:35:57 +08:00
Prevent qml warning when no printer is connected
This commit is contained in:
parent
2f3f57c43d
commit
7efde6b164
@ -235,12 +235,12 @@ Rectangle
|
|||||||
|
|
||||||
text: {
|
text: {
|
||||||
var result = "";
|
var result = "";
|
||||||
var jobState = Cura.MachineManager.printerOutputDevices[0].jobState;
|
|
||||||
if (!printerConnected) {
|
if (!printerConnected) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastJobState !== jobState) {
|
var jobState = Cura.MachineManager.printerOutputDevices[0].jobState;
|
||||||
|
if (lastJobState != jobState) {
|
||||||
// the userClicked message must disappear when an "automated" jobState comes by
|
// the userClicked message must disappear when an "automated" jobState comes by
|
||||||
userClicked = false;
|
userClicked = false;
|
||||||
lastJobState = jobState;
|
lastJobState = jobState;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user