Run menubar.utils.parse_dir in protected context
Fixes: https://github.com/awesomeWM/awesome/issues/1761 Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
98a43581ba
commit
50cfa6c111
|
@ -287,11 +287,11 @@ function utils.parse_dir(dir_path, callback)
|
|||
enum:async_close()
|
||||
end
|
||||
|
||||
gio.Async.start(function()
|
||||
gio.Async.start(protected_call.call)(function()
|
||||
local result = {}
|
||||
parser(dir_path, result)
|
||||
protected_call.call(callback, result)
|
||||
end)()
|
||||
callback(result)
|
||||
end)
|
||||
end
|
||||
|
||||
function utils.compute_textbox_width(textbox, s)
|
||||
|
|
Loading…
Reference in New Issue