mirror of https://github.com/lcpz/lain.git
Merge pull request #226 from frizinak/master
widget.base: Fix cached output
This commit is contained in:
commit
2697333bdc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue