naughty: Emit `property::icon` when the `image` or `images` change.

This way updating the icon at least *can* work.
This commit is contained in:
Emmanuel Lepage Vallee 2020-03-07 20:35:33 -05:00
parent 92d6fcda92
commit d5b652973f
1 changed files with 11 additions and 0 deletions

View File

@ -618,6 +618,17 @@ for _, prop in ipairs(properties) do
end
-- Changing the image will change the icon, make sure property::icon is emitted.
for _, prop in ipairs {"image", "images" } do
local cur = notification["set_"..prop]
notification["set_"..prop] = function(self, value)
cur(self, value)
self._private.icon = nil
self:emit_signal("property::icon")
end
end
local hints_default = {
urgency = "normal",
resident = false,