Skip to content
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
8 changes: 2 additions & 6 deletions interface/Device.tt
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,8 @@ foreach (var register in deviceRegisters)
/// Gets or sets the relative or absolute path on which to save the message data.
/// </summary>
[Description("The relative or absolute path of the directory on which to save the message data.")]
[Editor("Bonsai.Design.SaveFileNameEditor, Bonsai.Design", DesignTypes.UITypeEditor)]
public string Path
{
get => System.IO.Path.GetDirectoryName(writer.FileName);
set => writer.FileName = System.IO.Path.Combine(value, nameof(<#= deviceName #>) + BinaryExtension);
}
[Editor("Bonsai.Design.FolderNameEditor, Bonsai.Design", DesignTypes.UITypeEditor)]
public string Path { get; set; } = ".";

/// <summary>
/// Gets or sets a value indicating whether element writing should be buffered. If <see langword="true"/>,
Expand Down