From f80a4563be9af2b211924a73abcfe5827cb66a71 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Fri, 9 Jun 2023 03:50:34 +0200 Subject: [PATCH] When logging don't use `core.status_view` if not yet initialized --- data/core/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/core/init.lua b/data/core/init.lua index 2b9be2a1..9aba4c70 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -1197,7 +1197,9 @@ function core.custom_log(level, show, backtrace, fmt, ...) local text = string.format(fmt, ...) if show then local s = style.log[level] - core.status_view:show_message(s.icon, s.color, text) + if core.status_view then + core.status_view:show_message(s.icon, s.color, text) + end end local info = debug.getinfo(2, "Sl")