shithub: choc

Download patch

ref: e49be7d6b31db00b43e356fc3b1314ccd1fe0487
parent: 3bde136c60ba10dc080bc1060a6c039f94d7d147
author: Simon Howard <fraggle@soulsphere.org>
date: Wed Oct 24 16:08:18 EDT 2018

setup: Always show music packs action.

Now that this works regardless of the music output type, it's no longer
necessary to hide this behind a conditional widget. So just always show
it.

Part of #440 but will also aid discoverability for music packs
configuration, as part of #1051.

--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -149,9 +149,7 @@
                                   TXT_SCREEN_W / 2, 3);
 
     music_action = TXT_NewWindowAction('m', "Music Packs");
-    TXT_SetWindowAction(window, TXT_HORIZ_CENTER,
-        TXT_NewConditional(&snd_musicdevice, SNDDEVICE_GENMIDI,
-            music_action));
+    TXT_SetWindowAction(window, TXT_HORIZ_CENTER, music_action);
     TXT_SignalConnect(music_action, "pressed", OpenMusicPackDir, NULL);
 
     TXT_AddWidgets(window,