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:
parent
57517628f0
commit
0ad96cc73f
2 changed files with 11 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue