More IPC work

Additional checks to make sure profile update event is not getting sent when editor and default profile is involved
Selected default profile can no longer be changed if profile set as default is enabled
Fixed "Limit to my creatures" not ignoring objects with IdentifierType != Owned
IPC test tab no longer initializes IPC if debug mode is disabled
Fixed incorrect warning priority in plugin state control
Some slight text changes
This commit is contained in:
RisaDev
2024-03-26 00:14:29 +03:00
parent da252a57cf
commit abb92e741e
7 changed files with 65 additions and 44 deletions

View File

@@ -19,6 +19,7 @@ using System.Collections.Generic;
using IPCProfileDataTuple = (System.Guid UniqueId, string Name, string VirtualPath, string CharacterName, bool IsEnabled);
using OtterGui.Log;
using CustomizePlus.Core.Extensions;
using CustomizePlus.Configuration.Data;
namespace CustomizePlus.UI.Windows.MainWindow.Tabs.Debug;
@@ -85,7 +86,8 @@ public class IPCTestTab //: IDisposable
ObjectManager objectManager,
GameObjectService gameObjectService,
ActorManager actorManager,
Logger logger)
Logger logger,
PluginConfiguration configuration)
{
_objectTable = objectTable;
_profileManager = profileManager;
@@ -95,7 +97,8 @@ public class IPCTestTab //: IDisposable
_actorManager = actorManager;
_logger = logger;
EzIPC.Init(this, "CustomizePlus");
if(configuration.DebuggingModeEnabled)
EzIPC.Init(this, "CustomizePlus"); //do not init EzIPC if debugging disabled so no debug event hook is created
if (_getApiVersionIpcFunc != null)
_apiVersion = _getApiVersionIpcFunc();