From dc148601662c37cfd305b81d4dce1eb6a10e656b Mon Sep 17 00:00:00 2001 From: Takase <20792268+takase1121@users.noreply.github.com> Date: Fri, 18 Aug 2023 21:25:10 +0800 Subject: [PATCH] fix(core): defer core:open-log until everything is loaded (#1585) * fix(core): defer core:open-log until everything is loaded * docs(core): document why core:open-log is opened in a thread --- data/core/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/core/init.lua b/data/core/init.lua index 16cb265e..890d79c5 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -810,7 +810,11 @@ function core.init() end if not plugins_success or got_user_error or got_project_error then - command.perform("core:open-log") + -- defer LogView to after everything is initialized, + -- so that EmptyView won't be added after LogView. + core.add_thread(function() + command.perform("core:open-log") + end) end core.configure_borderless_window()