diff options
| author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-11-30 10:42:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-30 10:42:30 -0500 |
| commit | 3ff8adf59997ac4607ebd4e27d598f1746beb650 (patch) | |
| tree | 0eeb8c7b3d9e8485ba12c8e072c7aac41789b45f /builtin | |
| parent | da4a4086cff1c79c5d30d1bb3b7f23076f8dbd17 (diff) | |
| download | minetest-3ff8adf59997ac4607ebd4e27d598f1746beb650.tar.xz | |
Avoid resetting music when dialog opens (#13003)
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/mainmenu/tab_local.lua | 5 |
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 |
