From 4f7d2f696c55da6e460b727b7666374104e3c377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Fri, 29 Dec 2017 11:29:55 +0100 Subject: [PATCH] Fix: Category selection without jokers in challenge-mode --- PartyModes/PartyModeChallenge/CPartyModeChallenge.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PartyModes/PartyModeChallenge/CPartyModeChallenge.cs b/PartyModes/PartyModeChallenge/CPartyModeChallenge.cs index a8cee26b..46260e8c 100644 --- a/PartyModes/PartyModeChallenge/CPartyModeChallenge.cs +++ b/PartyModes/PartyModeChallenge/CPartyModeChallenge.cs @@ -331,10 +331,18 @@ namespace VocaluxeLib.PartyModes.Challenge public override void OnCategoryChange(int categoryIndex, ref SScreenSongOptions screenSongOptions) { - if (categoryIndex != -1) + if (categoryIndex != -1 || CBase.Config.GetTabs() == EOffOn.TR_CONFIG_OFF) + { + //If category is selected or tabs off: only random song selection _ScreenSongOptions.Selection.SelectNextRandomSong = true; + _ScreenSongOptions.Selection.RandomOnly = true; + } else + { + //If no category is selected: let user choose category _ScreenSongOptions.Selection.SongIndex = -1; + _ScreenSongOptions.Selection.RandomOnly = false; + } _ScreenSongOptions.Selection.CategoryIndex = categoryIndex;