-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Add 'Cancel' to quit (Bugsplat dialog) (#360), version 1.2.8.3
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,20 +55,24 @@ static void AskUserSendError(Exception ex) | |
{ | ||
Log.Error("Application Crashed", ex); | ||
|
||
if (MessageBox.Show( | ||
DialogResult dialogResult = MessageBox.Show( | ||
"A problem has been encountered and the application needs to restart. " + | ||
"Reporting this error will help us make our product better. " + | ||
"Press yes to open your standard email app.", | ||
"SystemTrayMenu BugSplat", | ||
MessageBoxButtons.YesNo) == DialogResult.Yes) | ||
"Press 'Yes' to open your standard email app (emailto: [email protected]). " + Environment.NewLine + | ||
@"You can also create a issue manually here https://github.com/Hofknecht/SystemTrayMenu/issues" + Environment.NewLine + | ||
"Press 'Cancel' to quit SystemTrayMenu.", | ||
"SystemTrayMenu Crashed", | ||
MessageBoxButtons.YesNoCancel); | ||
|
||
if (dialogResult == DialogResult.Yes) | ||
{ | ||
Log.ProcessStart("mailto:" + "[email protected]" + | ||
"?subject=SystemTrayMenu Bug reported " + | ||
Assembly.GetEntryAssembly().GetName().Version + | ||
"&body=" + ex.ToString()); | ||
} | ||
|
||
if (!isStartup) | ||
if (!isStartup && dialogResult != DialogResult.Cancel) | ||
{ | ||
AppRestart.ByThreadException(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters