Skip to content

Commit

Permalink
Merge pull request #3840 from bclothier/FixSettingDefault
Browse files Browse the repository at this point in the history
Enforce the non-default default values
  • Loading branch information
Hosch250 committed Mar 17, 2018
2 parents 7b74b4b + 352e72a commit 7983a70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rubberduck.Core/Settings/GeneralSettings.cs
Expand Up @@ -55,6 +55,14 @@ public int MinimumLogLevel

public List<ExperimentalFeatures> EnableExperimentalFeatures { get; set; } = new List<ExperimentalFeatures>();

public GeneralSettings()
{
//Enforce non-default default value for members
//In other words, if we want a bool to default to
//true, it must be set here for correct behavior
CompileBeforeParse = true;
}

public bool Equals(GeneralSettings other)
{
return other != null &&
Expand Down

0 comments on commit 7983a70

Please sign in to comment.