diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index e94b5e3e..a168ac4f 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -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