mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:26:00 +08:00
Only update position of label when it's visible
This prevents unneeded re-rendering
This commit is contained in:
parent
b25d6360ab
commit
bd18a539e2
@ -202,8 +202,9 @@ Item
|
||||
// dragging a tool handle.
|
||||
Rectangle
|
||||
{
|
||||
x: -base.x + base.mouseX + UM.Theme.getSize("default_margin").width
|
||||
y: -base.y + base.mouseY + UM.Theme.getSize("default_margin").height
|
||||
id: toolInfo
|
||||
x: visible ? -base.x + base.mouseX + UM.Theme.getSize("default_margin").width: 0
|
||||
y: visible ? -base.y + base.mouseY + UM.Theme.getSize("default_margin").height: 0
|
||||
|
||||
width: toolHint.width + UM.Theme.getSize("default_margin").width
|
||||
height: toolHint.height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user