mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 05:15:54 +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.
|
// dragging a tool handle.
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
x: -base.x + base.mouseX + UM.Theme.getSize("default_margin").width
|
id: toolInfo
|
||||||
y: -base.y + base.mouseY + UM.Theme.getSize("default_margin").height
|
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
|
width: toolHint.width + UM.Theme.getSize("default_margin").width
|
||||||
height: toolHint.height;
|
height: toolHint.height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user