naughty: Emit `property::icon` when the `image` or `images` change.
This way updating the icon at least *can* work.
This commit is contained in:
parent
92d6fcda92
commit
d5b652973f
|
@ -618,6 +618,17 @@ for _, prop in ipairs(properties) do
|
||||||
|
|
||||||
end
|
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 = {
|
local hints_default = {
|
||||||
urgency = "normal",
|
urgency = "normal",
|
||||||
resident = false,
|
resident = false,
|
||||||
|
|
Loading…
Reference in New Issue