mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-28 15:21:37 +12:00
[Feature] USB - Portable user.config and relative folder (#158), version 1.0.17.39
This commit is contained in:
parent
5dd6828a31
commit
313d786555
2 changed files with 11 additions and 3 deletions
|
@ -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.0.17.38")]
|
||||
[assembly: AssemblyFileVersion("1.0.17.38")]
|
||||
[assembly: AssemblyVersion("1.0.17.39")]
|
||||
[assembly: AssemblyFileVersion("1.0.17.39")]
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
namespace SystemTrayMenu.Utilities
|
||||
{
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
@ -44,8 +45,15 @@ namespace SystemTrayMenu.Utilities
|
|||
p.StartInfo = new ProcessStartInfo(
|
||||
Process.GetCurrentProcess().
|
||||
MainModule.FileName);
|
||||
try
|
||||
{
|
||||
p.Start();
|
||||
}
|
||||
catch (Win32Exception ex)
|
||||
{
|
||||
Log.Warn("Restart failed", ex);
|
||||
}
|
||||
}
|
||||
|
||||
Application.Exit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue