mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -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 .. [[]
|
field_default .. [[]
|
||||||
]]
|
]]
|
||||||
if data.tooltip then
|
if data.tooltip then
|
||||||
formspec = formspec .. [[
|
formspec = formspec .. "tooltip[" .. setting .. ";" .. data.tooltip .. "]"
|
||||||
tooltip[]] .. setting .. ";" .. data.tooltip .. [[]
|
|
||||||
]]
|
|
||||||
end
|
end
|
||||||
if data.dataset then
|
if data.dataset then
|
||||||
local formatted_dataset = table.copy(data.dataset)
|
local formatted_dataset = table.copy(data.dataset)
|
||||||
|
|
Loading…
Add table
Reference in a new issue