calendar: let ability to disable icon (see notes section in the wiki); closes #351
This commit is contained in:
parent
5b266ecf16
commit
de72508c78
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ 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")))
|
||||
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"))
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit d25b127c9e534582a399a670b972afa1ff72af37
|
||||
Subproject commit 666575233da2ff2f7973320ec69ddf403454b400
|
Loading…
Add table
Reference in a new issue