diff options
| author | Francesco Abbate <francesco.bbt@gmail.com> | 2021-06-04 17:16:28 +0200 |
|---|---|---|
| committer | Francesco Abbate <francesco.bbt@gmail.com> | 2021-06-04 17:16:28 +0200 |
| commit | 78bb96cf726f6e8efbb57275d0b7fe318482cb67 (patch) | |
| tree | 096902a7cd9dfb2f460b376d5a67ccf3a1e4a914 | |
| parent | abf00254f1391c78ef6ae7ad757489e06c14cb8d (diff) | |
| download | lite-xl-project-based-3.tar.gz lite-xl-project-based-3.zip | |
Fix a few problems related to the rebaseproject-based-3
| -rw-r--r-- | data/core/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/core/init.lua b/data/core/init.lua index aaf52277..282f30d8 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -200,8 +200,8 @@ end function core.scan_project_folder(dirname, filename) - for _, dir in ipairs(core.project_directories) do - if dir.name == dirname then + for _, dir in ipairs(core.project_entries) do + if dir.item.type == 'dir' and dir.name == dirname then for i, file in ipairs(dir.files) do local file = dir.files[i] if file.filename == filename then @@ -483,7 +483,7 @@ function core.init() do -- FIXME: change the name for "recents_open" - local window_position + local window_position, window_mode core.recent_projects, core.recents_open, window_position, window_mode = load_session() if window_mode == "normal" then system.set_window_size(table.unpack(window_position)) |
