Fixed legacy IPC not handling exceptions thrown by ProfileManager.RemoveTemporaryProfile, changelog text fix

This commit is contained in:
RisaDev
2024-03-30 19:35:44 +03:00
parent c8b4888ebd
commit a00ae1d0c5
2 changed files with 10 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ using CustomizePlus.Armatures.Events;
using CustomizePlus.Armatures.Data;
using CustomizePlus.GameData.Extensions;
using Penumbra.GameData.Interop;
using CustomizePlus.Profiles.Exceptions;
namespace CustomizePlus.Api.Compatibility;
@@ -265,7 +266,14 @@ public class CustomizePlusLegacyIpc : IDisposable
return;
}*/
_profileManager.RemoveTemporaryProfile(actor);
try
{
_profileManager.RemoveTemporaryProfile(actor);
}
catch (Exception ex)
{
_logger.Warning($"[LEGACY IPC DO NOT USE] Unable to revert character. Character: {character?.Name}, exception: {ex}");
}
}
private string GetBase64String(string data)

View File

@@ -40,7 +40,7 @@ public class CPlusChangeLog
.RegisterEntry("Selected default profile can no longer be changed if profile set as default is enabled. (2.0.2.1)")
.RegisterEntry("Profiles can no longer be enabled/disabled while editor is active. (2.0.2.1)")
.RegisterEntry("Fixed incorrect warning message priorities in main window. (2.0.2.1)")
.RegisterEntry("Fixed \"Limit to my creatures\" not ignoring objects other than minions and mounts. (2.0.2.1)")
.RegisterEntry("Fixed \"Limit to my creatures\" not ignoring objects other than summons, minions and mounts. (2.0.2.1)")
.RegisterEntry("Fixed text in various places. (2.0.2.1)");
private static void Add2_0_1_0(Changelog log)