just a (very) small performance enhancement

This commit is contained in:
Alexander Eckart committed 2012-12-19 20:08:23 +01:00
1 parent 71527847fa
commit 626fd47886
1 file changed
+8 -6
@@ -399,13 +399,15 @@ namespace Vocaluxe.PartyModes
if (_Base.Profiles.GetProfiles()[i].Active == EOffOn.TR_CONFIG_ON)
{
visible = true;
}
for (int p = 0; p < Data.ScreenNames.ProfileIDs.Count; p++)
{
//Don't show profile if is selected, but if selected and guest
if (Data.ScreenNames.ProfileIDs[p] == i && _Base.Profiles.GetProfiles()[i].GuestProfile == EOffOn.TR_CONFIG_OFF)
for (int p = 0; p < Data.ScreenNames.ProfileIDs.Count; p++)
{
visible = false;
//Don't show profile if is selected, but if selected and guest
if (Data.ScreenNames.ProfileIDs[p] == i && _Base.Profiles.GetProfiles()[i].GuestProfile == EOffOn.TR_CONFIG_OFF)
{
visible = false;
break;
}
}
}
if (visible)