X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3c08699d4bd65b8b7da1474c2f216576a2d6dfbe..de03791b816b60acbfcb41476330142135ac4ac3:/widgets/weather.lua?ds=inline 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