Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitepower18 committed Feb 14, 2024
1 parent 438070c commit 92197c7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions WSA System Control/AppContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,14 @@ private void Win11WSANotFound()
MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1,
MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading);
Environment.Exit(0);
}
else
{
MessageBox.Show(message, caption,
MessageBoxButtons.OK,
MessageBoxIcon.Error);
Environment.Exit(0);
}
Environment.Exit(0);
}

private async Task<StartupTaskState> GetStartupState()
Expand Down Expand Up @@ -175,14 +174,13 @@ private void Win10WSANotFound()
MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1,
MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading);
Environment.Exit(0);
} else
{
MessageBox.Show(message, caption,
MessageBoxButtons.OK,
MessageBoxIcon.Error);
Environment.Exit(0);
}
Environment.Exit(0);
}

private void aboutDialog(object sender, EventArgs e)
Expand Down

0 comments on commit 92197c7

Please sign in to comment.