mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 07:09:02 +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
|
||||
opacity:
|
||||
{
|
||||
if (!printJob)
|
||||
{
|
||||
return 0
|
||||
}
|
||||
if (printJob.state == "error" || !printJob.isActive)
|
||||
if (printJob && (printJob.state == "error" || !printJob.isActive))
|
||||
{
|
||||
return 0.5
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user