REMOVE: dont add reload on save hook in core:open-user-module, its automatically done in doc:save()
This commit is contained in:
parent
3d8cf22933
commit
cc9aa23340
|
@ -107,12 +107,6 @@ command.add(nil, {
|
|||
["core:open-user-module"] = function()
|
||||
local user_module_doc = core.open_doc(USERDIR .. "/init.lua")
|
||||
if not user_module_doc then return end
|
||||
local doc_save = user_module_doc.save
|
||||
user_module_doc.save = function(self)
|
||||
doc_save(self)
|
||||
core.reload_module("core.style")
|
||||
core.load_user_directory()
|
||||
end
|
||||
core.root_view:open_doc(user_module_doc)
|
||||
end,
|
||||
|
||||
|
|
Loading…
Reference in New Issue