From: Matsievskiy S.V Date: Wed, 28 Nov 2018 14:17:08 +0000 (+0300) Subject: fix imap notifications X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/8d15b03ecac62e4d9a0312ca7cd4ad0503692841?hp=--cc;pf=etc fix imap notifications --- 8d15b03ecac62e4d9a0312ca7cd4ad0503692841 diff --git a/widget/imap.lua b/widget/imap.lua index 3f4d9cc..75270f1 100644 --- a/widget/imap.lua +++ b/widget/imap.lua @@ -68,7 +68,6 @@ local function factory(args) for s, d in f:gmatch("(%w+)%s+(%d+)") do imap_now[s] = tonumber(d) end mailcount = imap_now["UNSEEN"] -- backwards compatibility - helpers.set_map(mail, mailcount) widget = imap.widget settings() @@ -80,6 +79,7 @@ local function factory(args) text = string.format("%s has %d new message%s", mail, mailcount, mailcount == 1 and "" or "s") } end + helpers.set_map(mail, mailcount) end) end