mirror of https://github.com/lcpz/lain.git
Merge pull request #483 from lecoredump/master
Validate function before callback. Fixes #482.
This commit is contained in:
commit
74fc1d9d3d
|
@ -137,7 +137,7 @@ local function factory(args)
|
|||
function fs.update(callback)
|
||||
Gio.Async.start(gears.protected_call.call)(function()
|
||||
update_synced()
|
||||
if callback then
|
||||
if type(callback) == "function" and callback then
|
||||
callback()
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue