mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:59:05 +08:00
Simplify enabled behaviour
CURA-9232
This commit is contained in:
parent
1accb30408
commit
6f7fbbecf7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user