diff --git a/MareSynchronos/Services/PairAnalyzer.cs b/MareSynchronos/Services/PairAnalyzer.cs index c3cdbe0..92c50a4 100644 --- a/MareSynchronos/Services/PairAnalyzer.cs +++ b/MareSynchronos/Services/PairAnalyzer.cs @@ -22,6 +22,7 @@ public sealed class PairAnalyzer : DisposableMediatorSubscriberBase : base(logger, mediator) { Pair = pair; +#if DEBUG Mediator.SubscribeKeyed(this, pair.UserData.UID, (msg) => { _baseAnalysisCts = _baseAnalysisCts.CancelRecreate(); @@ -36,12 +37,15 @@ public sealed class PairAnalyzer : DisposableMediatorSubscriberBase _lastDataHash = string.Empty; } }); +#endif _fileCacheManager = fileCacheManager; _xivDataAnalyzer = modelAnalyzer; +#if DEBUG var lastReceivedData = pair.LastReceivedCharacterData; if (lastReceivedData != null) _ = BaseAnalysis(lastReceivedData, _baseAnalysisCts.Token); +#endif } public Pair Pair { get; init; } diff --git a/MareSynchronos/UI/Components/DrawGroupPair.cs b/MareSynchronos/UI/Components/DrawGroupPair.cs index de43c16..37c2b8c 100644 --- a/MareSynchronos/UI/Components/DrawGroupPair.cs +++ b/MareSynchronos/UI/Components/DrawGroupPair.cs @@ -335,11 +335,13 @@ public class DrawGroupPair : DrawPairBase } if (_pair.IsVisible) { +#if DEBUG if (_uiSharedService.IconTextButton(FontAwesomeIcon.PersonCircleQuestion, "Open Analysis")) { _displayHandler.OpenAnalysis(_pair); ImGui.CloseCurrentPopup(); } +#endif if (_uiSharedService.IconTextButton(FontAwesomeIcon.Sync, "Reload last data")) { _pair.ApplyLastReceivedData(forced: true); diff --git a/MareSynchronos/UI/Components/DrawUserPair.cs b/MareSynchronos/UI/Components/DrawUserPair.cs index 8f1cb20..a0a418d 100644 --- a/MareSynchronos/UI/Components/DrawUserPair.cs +++ b/MareSynchronos/UI/Components/DrawUserPair.cs @@ -225,11 +225,13 @@ public class DrawUserPair : DrawPairBase } if (entry.IsVisible) { +#if DEBUG if (_uiSharedService.IconTextButton(FontAwesomeIcon.PersonCircleQuestion, "Open Analysis")) { _displayHandler.OpenAnalysis(_pair); ImGui.CloseCurrentPopup(); } +#endif if (_uiSharedService.IconTextButton(FontAwesomeIcon.Sync, "Reload last data")) { entry.ApplyLastReceivedData(forced: true);