Disable pair analysis in Release mode
This commit is contained in:
@@ -22,6 +22,7 @@ public sealed class PairAnalyzer : DisposableMediatorSubscriberBase
|
||||
: base(logger, mediator)
|
||||
{
|
||||
Pair = pair;
|
||||
#if DEBUG
|
||||
Mediator.SubscribeKeyed<PairDataAppliedMessage>(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; }
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user