feat(apt-widget): Close Popup On Mouse Out

This commit is contained in:
Hamish Fleming 2022-06-22 18:54:41 +10:00
parent d075212be3
commit 2f79c7bf35
No known key found for this signature in database
GPG Key ID: 898CD21A6E6AB236
1 changed files with 7 additions and 0 deletions

View File

@ -353,6 +353,13 @@ local function worker(user_args)
end
end)))
wibox_popup:connect_signal("mouse::leave", function()
if wibox_popup.visible then
wibox_popup.visible = false
end
end)
return apt_widget_button
end