Browse Source

Avoid resetting music when dialog opens (#13003)

Jude Melton-Houghton 1 year ago
parent
commit
3ff8adf599
1 changed files with 4 additions and 1 deletions
  1. 4 1
      builtin/mainmenu/tab_local.lua

+ 4 - 1
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