Merge pull request #226 from frizinak/master

widget.base: Fix cached output
This commit is contained in:
Luke Bonham 2016-09-03 19:46:57 +02:00 committed by GitHub
commit 2697333bdc
1 changed files with 1 additions and 1 deletions

View File

@ -26,8 +26,8 @@ local function worker(args)
base.widget = wibox.widget.textbox('') base.widget = wibox.widget.textbox('')
function base.update() function base.update()
if output ~= base.prev then
output = read_pipe(cmd) output = read_pipe(cmd)
if output ~= base.prev then
widget = base.widget widget = base.widget
settings() settings()
base.prev = output base.prev = output