mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:25:51 +08:00
Simplify logic slightly
Contributes to CL-1153
This commit is contained in:
parent
cced42a55b
commit
95400282b9
@ -23,11 +23,7 @@ Item
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
opacity:
|
opacity:
|
||||||
{
|
{
|
||||||
if (!printJob)
|
if (printJob && (printJob.state == "error" || !printJob.isActive))
|
||||||
{
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
if (printJob.state == "error" || !printJob.isActive)
|
|
||||||
{
|
{
|
||||||
return 0.5
|
return 0.5
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user