clear custom title when stopping guide group in scripted schedule (#2622)

This commit is contained in:
Jason Dove
2025-11-10 08:51:34 -06:00
committed by GitHub
parent b9a73226a8
commit bc400de94c
@@ -1520,6 +1520,7 @@ public class SchedulingEngine(
{
private int _guideGroup = guideGroup;
private bool _guideGroupLocked;
private bool _guideGroupTitle;
private readonly Dictionary<int, string> _graphicsElements = [];
private readonly System.Collections.Generic.HashSet<int> _channelWatermarkIds = [];
private readonly Stack<FillerKind> _fillerKind = new();
@@ -1581,11 +1582,22 @@ public class SchedulingEngine(
if (!string.IsNullOrWhiteSpace(customTitle))
{
_guideGroupTitle = true;
CustomTitle = customTitle;
}
}
public void UnlockGuideGroup() => _guideGroupLocked = false;
public void UnlockGuideGroup()
{
_guideGroupLocked = false;
if (_guideGroupTitle)
{
CustomTitle = null;
}
_guideGroupTitle = false;
}
public void SetGraphicsElement(int id, string variablesJson) => _graphicsElements.Add(id, variablesJson);
public void RemoveGraphicsElement(int id) => _graphicsElements.Remove(id);