Added args fallback
This commit is contained in:
parent
c8adfe6a90
commit
0af96c00f8
|
@ -38,7 +38,7 @@ local function get_widget_geometry(wibox, widget)
|
||||||
end
|
end
|
||||||
|
|
||||||
function task_preview:show(c, args)
|
function task_preview:show(c, args)
|
||||||
args = args or {}
|
args = args or self.args or {}
|
||||||
|
|
||||||
args.coords = args.coords or self.coords
|
args.coords = args.coords or self.coords
|
||||||
args.wibox = args.wibox
|
args.wibox = args.wibox
|
||||||
|
@ -256,4 +256,4 @@ function task_preview.mt:__call(...)
|
||||||
return new(...)
|
return new(...)
|
||||||
end
|
end
|
||||||
|
|
||||||
return setmetatable(task_preview, task_preview.mt)
|
return setmetatable(task_preview, task_preview.mt)
|
||||||
|
|
Loading…
Reference in New Issue