From 267075175455d5826ab0292b5d1ef3e31e3bbaf4 Mon Sep 17 00:00:00 2001 From: Meik Date: Wed, 4 Feb 2026 10:11:35 +0100 Subject: [PATCH] aktueller Stand --- .../Pages/SearchPage/SearchPageView.xaml.cs | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/FasdDesktopUi/Pages/SearchPage/SearchPageView.xaml.cs b/FasdDesktopUi/Pages/SearchPage/SearchPageView.xaml.cs index d5ec504..0043f2c 100644 --- a/FasdDesktopUi/Pages/SearchPage/SearchPageView.xaml.cs +++ b/FasdDesktopUi/Pages/SearchPage/SearchPageView.xaml.cs @@ -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()