Skip to content

Commit

Permalink
fix(Crash): Fix crash when crashing. Be sure we can get the message a…
Browse files Browse the repository at this point in the history
…nd tell the user to report the issue.

Fixes SOUNDSWITCH-CH
  • Loading branch information
Belphemur committed Jul 30, 2022
1 parent 0b3203f commit 8303e30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SoundSwitch/Program.cs
Expand Up @@ -223,7 +223,8 @@ private static void HandleException(Exception exception)
Would you like to share more information with the developers?";
var result = DialogResult.None;
_synchronizationContext.Send(state =>
var syncContext = _synchronizationContext ?? SynchronizationContext.Current;
syncContext.Send(state =>
{
result = MessageBox.Show(message, $@"{Application.ProductName} crashed...", MessageBoxButtons.YesNo,
MessageBoxIcon.Error);
Expand Down

0 comments on commit 8303e30

Please sign in to comment.