mirror of https://github.com/lcpz/lain.git
calendar: let ability to disable icon (see notes section in the wiki); closes #351
This commit is contained in:
parent
5b266ecf16
commit
de72508c78
|
@ -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
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit d25b127c9e534582a399a670b972afa1ff72af37
|
||||
Subproject commit 666575233da2ff2f7973320ec69ddf403454b400
|
Loading…
Reference in New Issue