From a7fc7b4408da729b034cb2ad1e0927a7bbc69072 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Fri, 18 Mar 2022 06:02:48 -0400 Subject: [PATCH] treeview: fix crash on tooltip.x been nil --- 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 4b81d55a..e94b5e3e 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 then + if self.hovered_item and self.tooltip.alpha > 0 and self.draw_tooltip.x then core.root_view:defer_draw(self.draw_tooltip, self) end end