using YukkuriMovieMaker.Commons; namespace UndoTree; internal class UndoTreeRecordedBranchViewModel(string name, UndoTreeNodeViewModel start, UndoTreeNodeViewModel head, bool wasActive) : Bindable { public string Name { get; } = name; public UndoTreeNodeViewModel Base { get; } = start; public UndoTreeNodeViewModel Head { get; } = head; public bool WasActive { get; } = wasActive; public IReadOnlyList Chain => Head.StepsBelow(Base); public string? RestoreHint { get; set => Set(ref field, value); } }