Minor toobar tooltip adjustment

This commit is contained in:
Francesco Abbate 2021-02-21 12:57:42 +01:00
parent fc46946ea1
commit 22de3354ce
1 changed files with 1 additions and 3 deletions

View File

@ -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