fix(ui): show full reason for Not-Loaded (#683)

no print
This commit is contained in:
luozhiya 2023-03-22 16:04:36 +08:00 committed by GitHub
parent 690f9e88e2
commit 261c2d6f95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -401,9 +401,11 @@ function M:plugin(plugin)
local reason = {}
for handler in pairs(Handler.types) do
if plugin[handler] then
local trigger = {}
for _, value in ipairs(plugin[handler]) do
reason[handler] = value
table.insert(trigger, type(value) == 'table' and value[1] or value)
end
reason[handler] = table.concat(trigger, ' ')
end
end
for _, other in pairs(Config.plugins) do