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:
parent
09dd111c61
commit
890e4882f3
|
@ -808,7 +808,11 @@ function core.init()
|
||||||
end
|
end
|
||||||
|
|
||||||
if not plugins_success or got_user_error or got_project_error then
|
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
|
end
|
||||||
|
|
||||||
core.configure_borderless_window()
|
core.configure_borderless_window()
|
||||||
|
|
Loading…
Reference in New Issue