Don't draw `treeview` tooltip if its position is not defined

This commit is contained in:
Guldoman 2022-03-18 16:10:24 +01:00
parent a7fc7b4408
commit 2d5af22dc9
No known key found for this signature in database
GPG Key ID: C08A498EC7F1AFDD
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ function TreeView:draw()
end
self:draw_scrollbar()
if self.hovered_item and self.tooltip.alpha > 0 and self.draw_tooltip.x then
if self.hovered_item and self.tooltip.x and self.tooltip.alpha > 0 then
core.root_view:defer_draw(self.draw_tooltip, self)
end
end