From: Luke Bonham Date: Fri, 21 Jul 2017 11:59:06 +0000 (+0200) Subject: calendar: let ability to disable icon (see notes section in the wiki); closes #351 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/de72508c786f2e659ed34d2ec329f946965d7696?ds=inline;hp=5b266ecf16c30674abb42f49acfb003c86564531 calendar: let ability to disable icon (see notes section in the wiki); closes #351 --- diff --git a/widget/calendar.lua b/widget/calendar.lua index 99e8817..d289ebb 100644 --- a/widget/calendar.lua +++ b/widget/calendar.lua @@ -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")) diff --git a/wiki b/wiki index d25b127..6665752 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit d25b127c9e534582a399a670b972afa1ff72af37 +Subproject commit 666575233da2ff2f7973320ec69ddf403454b400