Added Profile.GetProfileList, Profile.EnableByUniqueId, Profile.DisableByUniqueId IPC endpoints

Co-authored-by: Limiana <5073202+Limiana@users.noreply.github.com>
This commit is contained in:
RisaDev
2024-03-11 01:01:50 +03:00
parent e9b3fc4d3d
commit 13976a9135
6 changed files with 98 additions and 6 deletions

View File

@@ -292,6 +292,15 @@ public class ProfileManager : IDisposable
}
}
public void SetEnabled(Guid guid, bool value)
{
var profile = Profiles.FirstOrDefault(x => x.UniqueId == guid && x.ProfileType == ProfileType.Normal);
if (profile != null)
{
SetEnabled(profile, value);
}
}
public void SetLimitLookupToOwned(Profile profile, bool value)
{
if (profile.LimitLookupToOwnedObjects != value)