From: Luke Bonham Date: Mon, 21 Mar 2016 09:17:42 +0000 (+0100) Subject: Merge pull request #180 from stwa/patch-4 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/94e6be5b42f4bc1762ae76a796af59bfd8ea25ed?hp=65c79246660b9d015d6aa5c416814643a92b3905 Merge pull request #180 from stwa/patch-4 Fixed initial state where alsa.update may never be called --- diff --git a/widgets/base.lua b/widgets/base.lua index 272163c..e1ce297 100644 --- a/widgets/base.lua +++ b/widgets/base.lua @@ -26,11 +26,11 @@ local function worker(args) base.widget = wibox.widget.textbox('') function base.update() - if output ~= abase.prev then + if output ~= base.prev then output = read_pipe(cmd) widget = base.widget settings() - abase.prev = output + base.prev = output end end