just a (very) small performance enhancement
This commit is contained in:
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)
|
if (_Base.Profiles.GetProfiles()[i].Active == EOffOn.TR_CONFIG_ON)
|
||||||
{
|
{
|
||||||
visible = true;
|
visible = true;
|
||||||
}
|
|
||||||
for (int p = 0; p < Data.ScreenNames.ProfileIDs.Count; p++)
|
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)
|
|
||||||
{
|
{
|
||||||
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)
|
if (visible)
|
||||||
|
|||||||
Reference in new issue
Block a user