From 2d5af22dc90003f6619f0df808240827ae6bfd87 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Fri, 18 Mar 2022 16:10:24 +0100 Subject: [PATCH] Don't draw `treeview` tooltip if its position is not defined --- data/plugins/treeview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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