1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Update gamebar on tab enter (#8192)

This commit is contained in:
Paul Ouellette 2019-02-18 16:04:43 -05:00 committed by Paramat
parent 57517628f0
commit 0ad96cc73f
2 changed files with 11 additions and 10 deletions

View file

@ -144,7 +144,10 @@ local function init_globals()
tv_main:set_fixed_size(false)
if menustyle ~= "simple" then
tv_main:set_tab(core.settings:get("maintab_LAST"))
local last_tab = core.settings:get("maintab_LAST")
if last_tab and tv_main.current_tab ~= last_tab then
tv_main:set_tab(last_tab)
end
end
ui.set_default("maintab")
tv_main:show()