aktueller Stand

This commit is contained in:
Meik
2026-02-04 10:11:35 +01:00
parent 696629b5a8
commit 2670751754

View File

@@ -820,7 +820,26 @@ namespace FasdDesktopUi.Pages.SearchPage
private bool CheckTicketOverviewAvailability()
{
return cFasdCockpitConfig.Instance?.Global?.TicketConfiguration?.ShowOverview == true;
return cFasdCockpitConfig.Instance?.Global?.TicketConfiguration?.ShowOverview == true
&& IsTicketIntegrationActive();
}
private bool IsTicketIntegrationActive()
{
try
{
var healthCards = cF4SDCockpitXmlConfig.Instance?.HealthCardConfig?.HealthCards?.Values;
if (healthCards == null)
return false;
return healthCards.Any(card =>
card?.InformationClasses?.Contains(enumFasdInformationClass.Ticket) == true);
}
catch (Exception E)
{
LogException(E);
return false;
}
}
private void UpdateTicketOverviewAvailability()