X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/bd1c6e20bbac7be806d4f5e793960c1bc6846797..14cab4ebc3fd8b0e121c41653a55e516a977591a:/widgets/weather.lua diff --git a/widgets/weather.lua b/widgets/weather.lua index 3f9253f..ca0ceed 100644 --- a/widgets/weather.lua +++ b/widgets/weather.lua @@ -66,6 +66,10 @@ local function worker(args) notification_preset.screen = mouse.screen end + if not weather.notification_text then + weather.forecast_update() + end + weather.notification = naughty.notify({ text = weather.notification_text, icon = weather.icon_path, @@ -106,8 +110,6 @@ local function worker(args) weather.notification_text = weather.notification_text .. "\n" end end - else - weather.notification_text = 0 end end) end