Fix DefaultLocalPlayerProfile and DefaultProfile conflicting, fix commands, bump IPC version, send Profile.OnUpdate for DefaultProfile and DefaultLocalPlayerProfile
This commit is contained in:
@@ -186,10 +186,6 @@ public partial class ProfileManager : IDisposable
|
||||
|
||||
profile.Characters.Add(actorIdentifier);
|
||||
|
||||
//Called so all other active profiles for new character name get disabled
|
||||
//saving is performed there
|
||||
//SetEnabled(profile, profile.Enabled, true); //todo
|
||||
|
||||
SaveProfile(profile);
|
||||
|
||||
_logger.Debug($"Add character for profile {profile.UniqueId}.");
|
||||
@@ -206,10 +202,6 @@ public partial class ProfileManager : IDisposable
|
||||
|
||||
profile.Characters.Remove(actorIdentifier);
|
||||
|
||||
//Called so all other active profiles for new character name get disabled
|
||||
//saving is performed there
|
||||
//SetEnabled(profile, profile.Enabled, true); //todo
|
||||
|
||||
SaveProfile(profile);
|
||||
|
||||
_logger.Debug($"Removed character from profile {profile.UniqueId}.");
|
||||
@@ -479,11 +471,6 @@ public partial class ProfileManager : IDisposable
|
||||
if (!actorIdentifier.IsValid)
|
||||
yield break;
|
||||
|
||||
var name = actorIdentifier.ToNameWithoutOwnerName();
|
||||
|
||||
if (name.IsNullOrWhitespace())
|
||||
yield break;
|
||||
|
||||
bool IsProfileAppliesToCurrentActor(Profile profile)
|
||||
{
|
||||
//default profile check is done later
|
||||
|
||||
Reference in New Issue
Block a user