Enable ticket activity rows by default

This commit is contained in:
Meik
2026-07-20 09:01:52 +02:00
parent 30cc7a0482
commit 21e9b85be7
3 changed files with 18 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ namespace FasdDesktopUi.Basics.Services
#region Fields
private const string TicketAndServiceRequestsEnabledKey = "TicketAndServiceRequestsEnabled";
private const bool TicketAndServiceRequestsEnabledDefault = true;
private readonly ITicketOverviewCommunicationSource _communicationSource;
private static readonly string[] OverviewKeys = new[]
{
@@ -58,7 +59,7 @@ namespace FasdDesktopUi.Basics.Services
private bool _isDemo;
private bool _initialized;
private bool _isEnabled;
private bool _ticketAndServiceRequestsEnabled;
private bool _ticketAndServiceRequestsEnabled = TicketAndServiceRequestsEnabledDefault;
private readonly Random _random = new Random();
#if isDemo
private readonly List<DemoTicketRecord> _persistedDemoTickets = new List<DemoTicketRecord>();
@@ -343,7 +344,7 @@ namespace FasdDesktopUi.Basics.Services
: OverviewKeys;
var rawCounts = await communication.GetTicketOverviewCounts(requestedKeys, scope == TileScope.Role).ConfigureAwait(false);
var counts = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
var ticketAndServiceRequestsEnabled = _isDemo;
var ticketAndServiceRequestsEnabled = TicketAndServiceRequestsEnabledDefault;
if (rawCounts != null)
{