Disable pair analysis in Release mode

This commit is contained in:
Loporrit
2025-02-23 12:20:50 +00:00
parent 99eecbdc09
commit 250f61ad85
3 changed files with 8 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);