X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3c08699d4bd65b8b7da1474c2f216576a2d6dfbe..01bad23a2c11d5c05643016b3731d6d577547724:/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