Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit ba76caa

Browse files
committed
fixed wrong compiler crash check
1 parent 6d2bbbc commit ba76caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UI/MainWindow/MainWindowSPCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ await this.ShowMessageAsync(Program.Translations.GetLanguage("Error"),
196196
process.Start();
197197
process.WaitForExit();
198198

199-
if (process.ExitCode is not 1 or 0)
199+
if (process.ExitCode != 1 && process.ExitCode != 0)
200200
{
201201
await progressTask.CloseAsync();
202202
await this.ShowMessageAsync(Program.Translations.GetLanguage("Error"),

0 commit comments

Comments
 (0)