Fix main menu tab titles being cached

This commit is contained in:
rubenwardy 2024-03-03 15:50:39 +00:00
parent ab5202c103
commit c78c566ef3
3 changed files with 9 additions and 3 deletions

View File

@ -116,7 +116,9 @@ end
return {
name = "about",
caption = fgettext("About"),
caption = function()
return fgettext("About")
end,
cbf_formspec = function(tabview, name, tabdata)
local logofile = defaulttexturedir .. "logo.png"

View File

@ -459,7 +459,9 @@ end
--------------------------------------------------------------------------------
return {
name = "local",
caption = fgettext("Start Game"),
caption = function()
return fgettext("Start Game")
end ,
cbf_formspec = get_formspec,
cbf_button_handler = main_button_handler,
on_change = on_change

View File

@ -425,7 +425,9 @@ end
return {
name = "online",
caption = fgettext("Join Game"),
caption = function()
return fgettext("Join Game")
end,
cbf_formspec = get_formspec,
cbf_button_handler = main_button_handler,
on_change = on_change