Check if session file returned anything

This commit is contained in:
Guldoman
2021-09-04 00:32:01 +02:00
parent a134c8ea99
commit 371914af67
+2 -2
View File
@@ -17,7 +17,7 @@ local core = {}
local function load_session()
local ok, t = pcall(dofile, USERDIR .. "/session.lua")
if ok then
if ok and t then
return t.recents, t.window, t.window_mode
end
return {}
@@ -441,7 +441,7 @@ function core.init()
elseif window_mode == "maximized" then
system.set_window_mode("maximized")
end
core.recent_projects = recent_projects
core.recent_projects = recent_projects or {}
end
local project_dir = core.recent_projects[1] or "."