mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-04 05:37:00 -04:00
Better formatting for setting tooltip
Using inline instead of multiples lines to add tooltip attached to setting into formspec Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
This commit is contained in:
parent
6b8ce291a2
commit
e1ee837a48
1 changed files with 1 additions and 3 deletions
|
@ -62,9 +62,7 @@ function mail.show_settings(name)
|
|||
field_default .. [[]
|
||||
]]
|
||||
if data.tooltip then
|
||||
formspec = formspec .. [[
|
||||
tooltip[]] .. setting .. ";" .. data.tooltip .. [[]
|
||||
]]
|
||||
formspec = formspec .. "tooltip[" .. setting .. ";" .. data.tooltip .. "]"
|
||||
end
|
||||
if data.dataset then
|
||||
local formatted_dataset = table.copy(data.dataset)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue