From 78bb96cf726f6e8efbb57275d0b7fe318482cb67 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Fri, 4 Jun 2021 17:16:28 +0200 Subject: [PATCH] Fix a few problems related to the rebase --- data/core/init.lua | 6 +++--- 1 file 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))