mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Avoid resetting music when dialog opens (#13003)
This commit is contained in:
parent
da4a4086cf
commit
3ff8adf599
1 changed files with 4 additions and 1 deletions
|
@ -379,7 +379,10 @@ local function on_change(type, old_tab, new_tab)
|
||||||
gamebar:hide()
|
gamebar:hide()
|
||||||
end
|
end
|
||||||
core.set_topleft_text("")
|
core.set_topleft_text("")
|
||||||
mm_game_theme.update(new_tab,nil)
|
-- If new_tab is nil, a dialog is being shown; avoid resetting the theme
|
||||||
|
if new_tab then
|
||||||
|
mm_game_theme.update(new_tab,nil)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue