Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Toxantron committed Feb 17, 2023
2 parents fbe7afe + a496b52 commit 53c140a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.3.1
4.4.1
5 changes: 5 additions & 0 deletions src/Moryx.ControlSystem/Jobs/JobPositionType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@ public enum JobPositionType
/// The new jobs surround existing ones
/// </summary>
AroundExisting = 4,

/// <summary>
/// Append job(s) to group of jobs with the same recipe
/// </summary>
AppendToRecipe = 5,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class VisualInstructionBinder
/// </summary>
public VisualInstructionBinder(IEnumerable<VisualInstruction> instructions, IBindingResolverFactory resolverFactory)
{
_instructionResolvers = instructions.Select(inst => new InstructionResolver(inst, resolverFactory)).ToArray();
_instructionResolvers = instructions.Where(inst => inst.Type != InstructionContentType.Unknown).Select(inst => new InstructionResolver(inst, resolverFactory)).ToArray();
}

/// <summary>
Expand All @@ -40,7 +40,7 @@ public InstructionResolver(VisualInstruction instruction, IBindingResolverFactor
{
_instruction = instruction;

_contentResolver = TextBindingResolverFactory.Create(instruction.Content, resolverFactory);
_contentResolver = TextBindingResolverFactory.Create(instruction.Content ?? string.Empty, resolverFactory);
if (!string.IsNullOrEmpty(instruction.Preview))
_previewResolver = TextBindingResolverFactory.Create(instruction.Preview, resolverFactory);
}
Expand Down

0 comments on commit 53c140a

Please sign in to comment.