Simplify enabled behaviour

CURA-9232
This commit is contained in:
j.delarago 2022-05-02 13:17:36 +02:00
parent 1accb30408
commit 6f7fbbecf7

View file

@ -18,7 +18,7 @@ UM.PointingRectangle
opacity: 0
// This should be disabled when invisible, otherwise it will catch mouse events.
enabled: false
enabled: opacity > 0
Behavior on opacity
{
@ -54,13 +54,11 @@ UM.PointingRectangle
}
base.opacity = 1;
target = Qt.point(position.x + 1, position.y + Math.round(UM.Theme.getSize("tooltip_arrow_margins").height / 2))
enabled = true
}
function hide()
{
base.opacity = 0;
enabled = false
}
ScrollView