Skip to content

Commit

Permalink
Fixed console mode not terminating
Browse files Browse the repository at this point in the history
  • Loading branch information
5cover committed Dec 2, 2023
1 parent 0b90054 commit 4823a81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WinClean/Resources/ScriptExecutionStates.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion WinClean/Resources/ScriptExecutionStates.resx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<value>Running</value>
</data>
<data name="RunningDescription" xml:space="preserve">
<value>The execution is running.</value>
<value>The execution is underway.</value>
</data>
<data name="Skipped" xml:space="preserve">
<value>Skipped</value>
Expand Down
3 changes: 3 additions & 0 deletions WinClean/View/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ private async Task StartConsole(IEnumerable<string> args)
s.ParsingCulture = CultureInfo.CurrentCulture;
}).ParseArguments<CommandLineOptions>(args)
.MapResult(options => options.Execute(ServiceProvider.Get<IScriptStorage>().Scripts), _ => 1);

// Since no window was created, the application must be explicitely shutdown.
Shutdown();
}

private Task StartGui()
Expand Down

0 comments on commit 4823a81

Please sign in to comment.