REMOVE: dont add reload on save hook in core:open-user-module, its automatically done in doc:save()

This commit is contained in:
bud 2021-02-15 22:09:06 +01:00
parent 3d8cf22933
commit cc9aa23340
1 changed files with 0 additions and 6 deletions

View File

@ -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,