Skip to content

Commit

Permalink
Merge pull request #387 from bluepilledgreat/version-2.4.0-fix-warning
Browse files Browse the repository at this point in the history
fix warning without disabling warning
  • Loading branch information
pizzaboxer committed Jul 16, 2023
2 parents 0f1dd35 + 1a08401 commit 02434d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Bloxstrap/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,14 @@ void GlobalExceptionHandler(object sender, DispatcherUnhandledExceptionEventArgs

void FinalizeExceptionHandling(Exception exception)
{
#pragma warning disable 162
#if DEBUG
throw exception;
#endif

#else
if (!IsQuiet)
Controls.ShowExceptionDialog(exception);

Terminate(ErrorCode.ERROR_INSTALL_FAILURE);
#pragma warning restore 162
#endif
}

protected override void OnStartup(StartupEventArgs e)
Expand Down

0 comments on commit 02434d6

Please sign in to comment.