calendar: let ability to disable icon (see notes section in the wiki); closes #351

This commit is contained in:
Luke Bonham 2017-07-21 13:59:06 +02:00
parent 5b266ecf16
commit de72508c78
2 changed files with 3 additions and 3 deletions

View File

@ -38,8 +38,8 @@ function calendar.show(t_out, inc_offset, scr)
if current_month then -- today highlighted
calendar.offset = 0
calendar.icon = string.format("%s%s.png", calendar.icons, tonumber(os.date("%d")))
f = calendar.cal
calendar.icon = calendar.icons:len() > 0 and string.format("%s%s.png", calendar.icons, tonumber(os.date("%d")))
f = calendar.cal
else -- no current month showing, no day to highlight
local month = tonumber(os.date("%m"))
local year = tonumber(os.date("%Y"))

2
wiki

@ -1 +1 @@
Subproject commit d25b127c9e534582a399a670b972afa1ff72af37
Subproject commit 666575233da2ff2f7973320ec69ddf403454b400