Skip to content

Commit

Permalink
Editorial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszCichecki committed Jun 7, 2022
1 parent d123dc8 commit ab8f2f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,13 @@ private string GenerateHeader()

private string GenerateSubtitle()
{
var pipelineType = AutomationPipeline.Triggers.Any() ? "Automatic" : "Quick action";
var stepsCount = _stepsStackPanel.Children.ToArray()
.OfType<AbstractAutomationStepControl>()
.Count();
var stepsCountModifier = stepsCount != 0 ? "s" : "";

var text = $"{stepsCount} step";

if (stepsCount != 1)
text += "s";

return text;
return $"{pipelineType} | {stepsCount} step{stepsCountModifier}";
}

private AbstractAutomationStepControl GenerateControl(IAutomationStep step)
Expand Down
4 changes: 0 additions & 4 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ IF "%1"=="" (

SET PATH=%PATH%;"C:\Program Files (x86)\Inno Setup 6"

rmdir /s /q build
rmdir /s /q build_installer

dotnet clean
dotnet publish LenovoLegionToolkit.WPF -c release -o build /p:DebugType=None /p:FileVersion=%VERSION% /p:Version=%VERSION%

iscc make_installer.iss /DMyAppVersion=%VERSION%

0 comments on commit ab8f2f6

Please sign in to comment.