fix: overriding control shorthand tooltip not working (#210)

This commit is contained in:
Zhong Lufan
2022-09-18 19:10:44 +08:00
committed by GitHub
parent 3793fa574a
commit d1f2f70227

View File

@@ -3170,7 +3170,7 @@ function Controls:serialize()
for i, item in ipairs(items) do
local config = shorthands[item.config] and shorthands[item.config] or item.config
local config_tooltip = split(config, ' *%? *')
config = config_tooltip[1]
config = shorthands[config_tooltip[1]] and shorthands[config_tooltip[1]] or config
local tooltip = config_tooltip[2]
local parts = split(config, ' *: *')
local kind, params = parts[1], itable_slice(parts, 2)