From b469747f7a756d53c2d8dfb61ff426e62f7ca5b1 Mon Sep 17 00:00:00 2001 From: Henrik "Henke37" Andersson Date: Tue, 3 Dec 2019 08:35:05 +0100 Subject: GUI: Don't show midi setting tabs if the game has no music at all. --- gui/editgamedialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/editgamedialog.cpp b/gui/editgamedialog.cpp index 1b34a4753d..c2953dc8e5 100644 --- a/gui/editgamedialog.cpp +++ b/gui/editgamedialog.cpp @@ -223,11 +223,13 @@ EditGameDialog::EditGameDialog(const String &domain) addVolumeControls(tab, "GameOptions_Volume."); + bool showMidi = !_guioptions.contains(GUIO_NOMIDI) && !_guioptions.contains(GUIO_NOMUSIC); + // // 6) The MIDI tab // _globalMIDIOverride = NULL; - if (!_guioptions.contains(GUIO_NOMIDI)) { + if (showMidi) { tab->addTab(_("MIDI")); if (g_system->getOverlayWidth() > 320) @@ -242,7 +244,7 @@ EditGameDialog::EditGameDialog(const String &domain) // 7) The MT-32 tab // _globalMT32Override = NULL; - if (!_guioptions.contains(GUIO_NOMIDI)) { + if (showMidi) { tab->addTab(_("MT-32")); if (g_system->getOverlayWidth() > 320) -- cgit v1.2.3