From 3e39da071da130e3539227107d273f6d1b6a79ae Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Mon, 24 Jan 2022 09:31:40 +0100 Subject: [PATCH] Fix problem with project module save hook --- data/core/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/core/init.lua b/data/core/init.lua index 8810d4b2..366d1048 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -839,8 +839,9 @@ local function add_config_files_hooks() local doc_save = Doc.save local user_filename = system.absolute_path(USERDIR .. PATHSEP .. "init.lua") function Doc:save(filename, abs_filename) + local module_filename = system.absolute_path(".lite_project.lua") doc_save(self, filename, abs_filename) - if self.abs_filename == user_filename or self.abs_filename == core.project_module_filename then + if self.abs_filename == user_filename or self.abs_filename == module_filename then reload_customizations() rescan_project_directories() configure_borderless_window() @@ -1158,7 +1159,6 @@ end function core.load_project_module() local filename = ".lite_project.lua" - core.project_module_filename = system.absolute_path(filename) if system.get_file_info(filename) then return core.try(function() local fn, err = loadfile(filename)