[Feature] USB - Portable user.config and relative folder (#158), version 1.0.17.39

This commit is contained in:
Markus Hofknecht 2021-05-09 12:18:19 +02:00
parent 5dd6828a31
commit 313d786555
2 changed files with 11 additions and 3 deletions

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 // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.17.38")] [assembly: AssemblyVersion("1.0.17.39")]
[assembly: AssemblyFileVersion("1.0.17.38")] [assembly: AssemblyFileVersion("1.0.17.39")]

View file

@ -5,6 +5,7 @@
namespace SystemTrayMenu.Utilities namespace SystemTrayMenu.Utilities
{ {
using System; using System;
using System.ComponentModel;
using System.Diagnostics; using System.Diagnostics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Windows.Forms; using System.Windows.Forms;
@ -44,7 +45,14 @@ namespace SystemTrayMenu.Utilities
p.StartInfo = new ProcessStartInfo( p.StartInfo = new ProcessStartInfo(
Process.GetCurrentProcess(). Process.GetCurrentProcess().
MainModule.FileName); MainModule.FileName);
p.Start(); try
{
p.Start();
}
catch (Win32Exception ex)
{
Log.Warn("Restart failed", ex);
}
} }
Application.Exit(); Application.Exit();