Skip to content

Commit 2a27e62

Browse files
authored
Merge pull request #464 from Ryuno-Ki/fix-daily-forecast-icons
fix: always use day icons
2 parents b0e7a4a + cb5ef82 commit 2a27e62

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

weather-api-widget/weather.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,6 @@ local function worker(user_args)
321321
for i, day in ipairs(forecast) do
322322
-- Free plan allows forecast for up to three days, each with hours
323323
if i > 3 then break end
324-
local day_night_extension = ""
325-
if not day.is_day then
326-
day_night_extension = "-night"
327-
end
328324

329325
local day_forecast = wibox.widget {
330326
{
@@ -336,9 +332,9 @@ local function worker(user_args)
336332
{
337333
{
338334
{
335+
-- No extension to decide between day and night
339336
image = ICONS_DIR
340337
.. icon_map[day.day.condition.code]
341-
.. day_night_extension
342338
.. icons_extension,
343339
resize = true,
344340
forced_width = 48,

0 commit comments

Comments
 (0)