aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJude Melton-Houghton <jwmhjwmh@gmail.com>2022-11-30 10:42:30 -0500
committerGitHub <noreply@github.com>2022-11-30 10:42:30 -0500
commit3ff8adf59997ac4607ebd4e27d598f1746beb650 (patch)
tree0eeb8c7b3d9e8485ba12c8e072c7aac41789b45f
parentda4a4086cff1c79c5d30d1bb3b7f23076f8dbd17 (diff)
downloadminetest-3ff8adf59997ac4607ebd4e27d598f1746beb650.tar.xz
Avoid resetting music when dialog opens (#13003)
-rw-r--r--builtin/mainmenu/tab_local.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/builtin/mainmenu/tab_local.lua b/builtin/mainmenu/tab_local.lua
index f8de10db6..7887039ab 100644
--- a/builtin/mainmenu/tab_local.lua
+++ b/builtin/mainmenu/tab_local.lua
@@ -379,7 +379,10 @@ local function on_change(type, old_tab, new_tab)
gamebar:hide()
end
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