ADD: test in doc:save(), if the file is the user module, automatically reload config
This commit is contained in:
parent
cc9aa23340
commit
b9fcb6e5ae
|
@ -67,6 +67,10 @@ end
|
|||
|
||||
local function save(filename)
|
||||
doc():save(filename)
|
||||
if doc().filename == (USERDIR .. "/init.lua") then
|
||||
core.reload_module("core.style")
|
||||
core.load_user_directory()
|
||||
end
|
||||
core.log("Saved \"%s\"", doc().filename)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue