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
This commit is contained in:
Takase 2023-08-18 21:25:10 +08:00 committed by George Sokianos
parent eb306a2ff0
commit dc14860166
1 changed files with 5 additions and 1 deletions

View File

@ -810,7 +810,11 @@ function core.init()
end
if not plugins_success or got_user_error or got_project_error then
-- 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()