don't replace 'destroy' in existing notification, set destroy_cb (#2728)
The value passed as `args.destroy` becomes `destroy_cb`, so use that name when updating an existing notification. Fixes #2721. Might also resolve #2692.
This commit is contained in:
parent
d8687dc251
commit
ed0c3ceb2c
|
@ -207,6 +207,7 @@ capi.dbus.connect_signal("org.freedesktop.Notifications",
|
|||
|
||||
if notification then
|
||||
for k, v in pairs(args) do
|
||||
if k == "destroy" then k = "destroy_cb" end
|
||||
notification[k] = v
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue