Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitry authored May 19, 2018
1 parent cbf32f9 commit edb36f0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Homebrew/DecorateFoldout/Attributes/FoldAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ namespace Homebrew
public class FoldoutAttribute : PropertyAttribute
{
public string name;

public FoldoutAttribute(string name)
public bool foldEverything;

/// <summary>Adds the property to the specified foldout group.</summary>
/// <param name="name">Name of the foldout group.</param>
/// <param name="foldEverything">Toggle to put all properties to the specified group</param>
public FoldoutAttribute(string name, bool foldEverything = false)
{
this.foldEverything = foldEverything;
this.name = name;
}
}
Expand Down

0 comments on commit edb36f0

Please sign in to comment.