Skip to content

Commit

Permalink
Added CanBeSetInFile property to VariableDefinitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Jan 16, 2024
1 parent c25223a commit 49e7349
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions FRBDK/Glue/GlueCommon/SaveClasses/VariableDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public class VariableDefinition
[JsonIgnore]
public Func<IElement, NamedObjectSave, ReferencedFileSave, List<string>> CustomGetForcedOptionFunc;

// Added Jan 15 2024, default to true to match behavior
public bool CanBeSetInFile = true;

public bool HasGetter { get; set; } = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ private void HandleNamedObjectSelect(NamedObjectSave namedObject, GlueElement cu
}
foreach(var variable in ati.VariableDefinitions)
{
variable.DefaultValue = null;
if(variable.CanBeSetInFile == false)
{
variable.DefaultValue = null;
}
}
}

Expand Down

0 comments on commit 49e7349

Please sign in to comment.