From 3ff8adf59997ac4607ebd4e27d598f1746beb650 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Wed, 30 Nov 2022 10:42:30 -0500 Subject: [PATCH] Avoid resetting music when dialog opens (#13003) --- builtin/mainmenu/tab_local.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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