diff options
Diffstat (limited to 'script/library.lua')
-rw-r--r-- | script/library.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/script/library.lua b/script/library.lua index ded12a27..9457b74b 100644 --- a/script/library.lua +++ b/script/library.lua @@ -542,11 +542,10 @@ files.watch(function (ev, uri) end end) -function m.init() - initBuiltIn(nil) - for _, scp in ipairs(ws.folders) do - initBuiltIn(scp.uri) +ws.watch(function (ev, uri) + if ev == 'startReload' then + initBuiltIn(uri) end -end +end) return m |