From 06720edd93b51a84650e2d385a24043cc4fb932e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Oct 2015 21:53:50 +0300 Subject: Add strong typed bool enum mainconfig. --- src/gui/widgets/tabs/setup_audio.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/tabs/setup_audio.cpp') diff --git a/src/gui/widgets/tabs/setup_audio.cpp b/src/gui/widgets/tabs/setup_audio.cpp index e913f611c..32445f1c6 100644 --- a/src/gui/widgets/tabs/setup_audio.cpp +++ b/src/gui/widgets/tabs/setup_audio.cpp @@ -73,12 +73,14 @@ Setup_Audio::Setup_Audio(const Widget2 *const widget) : // TRANSLATORS: settings option new SetupItemSlider(_("Sfx volume"), "", "sfxVolume", this, "sfxVolumeEvent", 0, soundManager.getMaxVolume(), 1, - 150, true, true); + 150, true, + MainConfig_true); // TRANSLATORS: settings option new SetupItemSlider(_("Music volume"), "", "musicVolume", this, "musicVolumeEvent", 0, soundManager.getMaxVolume(), 1, - 150, true, true); + 150, true, + MainConfig_true); // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable music fade out"), "", @@ -98,7 +100,9 @@ Setup_Audio::Setup_Audio(const Widget2 *const widget) : mChannelsList->push_back(_("surround+center+lfe")); // TRANSLATORS: settings option new SetupItemSlider2(_("Audio channels"), "", "audioChannels", this, - "audioChannels", 1, 4, 1, mChannelsList, false, true, false); + "audioChannels", 1, 4, 1, mChannelsList, false, + MainConfig_true, + false); // TRANSLATORS: settings group -- cgit v1.2.3-70-g09d2