ADD: test in doc:save(), if the file is the user module, automatically reload config
This commit is contained in:
@@ -67,6 +67,10 @@ end
|
|||||||
|
|
||||||
local function save(filename)
|
local function save(filename)
|
||||||
doc():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)
|
core.log("Saved \"%s\"", doc().filename)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user