diff --git a/Vocaluxe/Base/CProfiles.cs b/Vocaluxe/Base/CProfiles.cs index f70ce2d4..a57412a9 100644 --- a/Vocaluxe/Base/CProfiles.cs +++ b/Vocaluxe/Base/CProfiles.cs @@ -456,7 +456,7 @@ namespace Vocaluxe.Base if (!IsProfileIDValid(profileID)) return true; // this will prevent from saving dummy profiles to highscore db - return !_Profiles[profileID].UserRole.HasFlag(EUserRole.TR_USERROLE_NORMAL); + return _Profiles[profileID].UserRole <= EUserRole.TR_USERROLE_GUEST; } public static bool IsActive(int profileID) diff --git a/Vocaluxe/Screens/CScreenNames.cs b/Vocaluxe/Screens/CScreenNames.cs index b67c561b..ba83f871 100644 --- a/Vocaluxe/Screens/CScreenNames.cs +++ b/Vocaluxe/Screens/CScreenNames.cs @@ -620,7 +620,7 @@ namespace Vocaluxe.Screens else _SelectSlides[_SelectSlideDuetPlayer[i]].Visible = false; } - + _NameSelections[_NameSelection].UpdateList(); _ProfilesChanged = false; _AvatarsChanged = false; } diff --git a/VocaluxeLib/Menu/CNameSelection.cs b/VocaluxeLib/Menu/CNameSelection.cs index 61da01cd..f41b42a0 100644 --- a/VocaluxeLib/Menu/CNameSelection.cs +++ b/VocaluxeLib/Menu/CNameSelection.cs @@ -488,13 +488,19 @@ namespace VocaluxeLib.Menu { if(id > -1) if (!_UsedProfiles.Contains(id) && CBase.Profiles.IsProfileIDValid(id) && !CBase.Profiles.IsGuest(id)) + { _UsedProfiles.Add(id); + _UpdateVisibleProfiles(); + } } public void RemoveUsedProfile(int id) { - if(id > -1) + if (id > -1) + { _UsedProfiles.Remove(id); + _UpdateVisibleProfiles(); + } } private void _PrepareTiles() @@ -523,7 +529,7 @@ namespace VocaluxeLib.Menu bool visible = profile.Active == EOffOn.TR_CONFIG_ON; if (visible) { - if (_UsedProfiles.Contains(profile.ID) && !profile.UserRole.HasFlag(EUserRole.TR_USERROLE_NORMAL)) + if (_UsedProfiles.Contains(profile.ID) && ((int)profile.UserRole) >= ((int)EUserRole.TR_USERROLE_NORMAL)) visible = false; } if (visible)