naughty: Fix updating the icon of DBus notification when passed by path.

This commit is contained in:
Emmanuel Lepage Vallee 2020-03-08 19:44:16 -04:00
parent 97e403b4e9
commit 21cb4037bc
1 changed files with 7 additions and 0 deletions

View File

@ -323,6 +323,13 @@ function notif_methods.Notify(sender, object_path, interface, method, parameters
notification[k] = v notification[k] = v
end end
-- Update the icon if necessary.
if app_icon ~= notification._private.app_icon then
notification._private.app_icon = app_icon
notification._private.icon = nil
notification:emit_signal("property::icon")
end
-- Even if no property changed, restart the timeout. -- Even if no property changed, restart the timeout.
notification:reset_timeout() notification:reset_timeout()
else else