diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-04-02 01:08:12 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-04-02 01:08:12 +0200 |
commit | 448275a3865d1db82a6fc37d60548da8b865e5e0 (patch) | |
tree | ed0b9134b26d2002ec289210fb0915f41b26d59f /widgets/mbox.lua | |
parent | a9347ec0d033aa08d77fcc75c35d88514f9e84f5 (diff) | |
download | vicious-legacy-448275a3865d1db82a6fc37d60548da8b865e5e0.tar.xz |
widgets: reuse existing datasets where appropriate
Gmail, mbox, raid, weather and wifi could return the old value in case
there isn't new data, no need for N/A to be so common on our wibox.
Diffstat (limited to 'widgets/mbox.lua')
-rw-r--r-- | widgets/mbox.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/mbox.lua b/widgets/mbox.lua index 475d018..be64e03 100644 --- a/widgets/mbox.lua +++ b/widgets/mbox.lua @@ -16,13 +16,13 @@ local helpers = require("vicious.helpers") module("vicious.widgets.mbox") +-- Initialize variables +local subject = "N/A" + -- {{{ Mailbox widget type local function worker(format, warg) if not warg then return end - -- Default value - local subject = "N/A" - -- mbox could be huge, get a 30kb chunk from EOF if type(warg) ~= "table" then mbox = warg end -- * attachment could be much bigger than 30kb |