mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -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
|
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…
Add table
Add a link
Reference in a new issue