Avoid resetting music when dialog opens (#13003)

This commit is contained in:
Jude Melton-Houghton 2022-11-30 10:42:30 -05:00 committed by GitHub
parent da4a4086cf
commit 3ff8adf599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -379,8 +379,11 @@ local function on_change(type, old_tab, new_tab)
gamebar:hide()
end
core.set_topleft_text("")
-- 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
--------------------------------------------------------------------------------