Assuming playing party mode on ArgumentException

If getting an ArgumentException while requesting song selection options (which the TicTacToe party mode do), I assume that Vocaluxe is playing a party mode.
This allows detection of a running party mode in CScreenSing, to prevent song skipping (Shift/CTRL + Arrow Right) while playing party modes.
This commit is contained in:
Stefan authored and GitHub committed 2021-09-23 19:50:12 +02:00
1 parent a4cde06c06
commit 45b6a39754
1 file changed
+2
+2
View File
@@ -436,6 +436,8 @@ namespace Vocaluxe.Screens
}
catch (ArgumentException)
{
// Workaround to assume party mode here (TicTacToe game mode throw the ArgumentException) / Stefan1200
_Sso.Selection.PartyMode = true;
}
_SingNotes[_SingBars].Init(0);