mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-15 18:03:01 +12:00
[Feature] Add 'Cancel' to quit (Bugsplat dialog) (#360), version 1.2.8.3
This commit is contained in:
parent
e6bd977f5c
commit
7256910367
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue