X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/6cce5b6fe11fe8c69b08140d645c604fef59e42a..32eddd514f8ccc35eeaa128a441f6a47708e6a04:/widgets/maildir.lua?ds=inline diff --git a/widgets/maildir.lua b/widgets/maildir.lua index bef09f4..1f4cd45 100644 --- a/widgets/maildir.lua +++ b/widgets/maildir.lua @@ -30,7 +30,7 @@ local function worker(args) maildir.widget = wibox.widget.textbox() - function update() + function maildir.update() if ext_mail_cmd then awful.spawn(ext_mail_cmd) end -- Find pathes to mailboxes. @@ -76,7 +76,7 @@ local function worker(args) settings() end - helpers.newtimer(mailpath, timeout, update, true) + maildir.timer = helpers.newtimer(mailpath, timeout, maildir.update, true, true) return setmetatable(maildir, { __index = maildir.widget }) end