Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

honour the flash configuration #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/CasparCGFrontend/Flash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,22 @@ public string BufferDepth
set { this.bufferDepth = value; NotifyChanged("BufferDepth"); }
}

private Boolean? enabled = null;
[XmlElement(ElementName = "enabled")]
public Boolean Enabled
{
get { return this.enabled ?? true; }
set { this.enabled = value; NotifyChanged("Enabled"); }
}

public bool ShouldSerializEnabled()
{
return this.enabled != null;
}

public bool IsOnlyDefaultValues()
{
return bufferDepth == "auto";
return bufferDepth == "auto" && (this.enabled == null || this.enabled == false);
}

public event PropertyChangedEventHandler PropertyChanged = delegate { };
Expand Down