From 22de3354ceb0642646ab006427b4b48bf087da91 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Sun, 21 Feb 2021 12:57:42 +0100 Subject: [PATCH] Minor toobar tooltip adjustment --- data/plugins/toolbarview.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/data/plugins/toolbarview.lua b/data/plugins/toolbarview.lua index a12be317..9437daf5 100644 --- a/data/plugins/toolbarview.lua +++ b/data/plugins/toolbarview.lua @@ -99,9 +99,7 @@ function ToolbarView:on_mouse_moved(px, py, ...) return end end - if px > x_min and px <= x_max and py > y_min and py <= y_max then - self.tooltip = true - elseif self.tooltip then + if self.tooltip and not (px > x_min and px <= x_max and py > y_min and py <= y_max) then core.status_view:remove_tooltip() self.tooltip = false end