naughty: Pass the notification object to the action "invoked" signal.

Fix #3384
This commit is contained in:
Emmanuel Lepage Vallee 2021-09-16 17:22:33 -07:00
parent 2a8c17daea
commit 17bd5fb036
1 changed files with 4 additions and 1 deletions

View File

@ -337,7 +337,10 @@ local function new(_, args)
update_style(wdg)
wdg._private.default_buttons = gtable.join(
abutton({ }, 1, function(a) a:invoke(args.notification) end)
abutton({ }, 1, function(a)
local notif = wdg._private.notification or args.notification
a:invoke(notif)
end)
)
return wdg