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:
Will Dietz 2019-03-18 13:03:14 -05:00 committed by Emmanuel Lepage Vallée
parent d8687dc251
commit ed0c3ceb2c
1 changed files with 1 additions and 0 deletions

View File

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