mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 13:52:31 +01:00
Save chest label when exiting formspec
When using the form to edit a chest label, apply the edited label whenever the form is submitted with the text field included, rather than only if the form's specific "finished editing" button is used. This supports the natural use of <ret> to indicate that text editing is complete, which works with other text editing forms such as that for signs.
This commit is contained in:
parent
628a18977b
commit
593972b156
@ -69,7 +69,7 @@ local function get_receive_fields(name, data)
|
|||||||
if fields.edit_infotext then
|
if fields.edit_infotext then
|
||||||
page = "edit_infotext"
|
page = "edit_infotext"
|
||||||
end
|
end
|
||||||
if fields.save_infotext then
|
if fields.infotext_box then
|
||||||
meta:set_string("infotext", fields.infotext_box)
|
meta:set_string("infotext", fields.infotext_box)
|
||||||
end
|
end
|
||||||
local formspec = data.formspec
|
local formspec = data.formspec
|
||||||
|
Loading…
Reference in New Issue
Block a user