[Feature] Add 'Cancel' to quit (Bugsplat dialog) (#360), version 1.2.8.3

This commit is contained in:
Markus Hofknecht 2022-02-19 13:59:51 +01:00
parent e6bd977f5c
commit 7256910367
2 changed files with 11 additions and 7 deletions

View file

@ -55,12 +55,16 @@ namespace SystemTrayMenu
{
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: Markus@Hofknecht.eu). " + 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:" + "markus@hofknecht.eu" +
"?subject=SystemTrayMenu Bug reported " +
@ -68,7 +72,7 @@ namespace SystemTrayMenu
"&body=" + ex.ToString());
}
if (!isStartup)
if (!isStartup && dialogResult != DialogResult.Cancel)
{
AppRestart.ByThreadException();
}

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.8.1")]
[assembly: AssemblyFileVersion("1.2.8.1")]
[assembly: AssemblyVersion("1.2.8.3")]
[assembly: AssemblyFileVersion("1.2.8.3")]