naughty: Fix updating `naughty.widget.icon`.

It was never call, untested and obviously broken...
This commit is contained in:
Emmanuel Lepage Vallee 2020-03-07 20:36:21 -05:00
parent d5b652973f
commit a69b6123b8
1 changed files with 2 additions and 1 deletions

View File

@ -153,10 +153,11 @@ local function new(args)
gtable.crush(tb, icon, true)
function tb._private.icon_changed_callback()
local icn = gsurface.load_silently(tb._private.notification.icon)
if icn then
tb:set_image()
tb:set_image(icn)
end
end