Validate function before callback. Fixes #482
This commit is contained in:
parent
b38c6d67e9
commit
c782f7d775
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ local function factory(args)
|
||||||
function fs.update(callback)
|
function fs.update(callback)
|
||||||
Gio.Async.start(gears.protected_call.call)(function()
|
Gio.Async.start(gears.protected_call.call)(function()
|
||||||
update_synced()
|
update_synced()
|
||||||
if callback then
|
if type(callback) == "function" and callback then
|
||||||
callback()
|
callback()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue