mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Simplify logic slightly
Contributes to CL-1153
This commit is contained in:
parent
cced42a55b
commit
95400282b9
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue