From 313d786555be04f9e757e8b13de3dee05bf17fab Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Sun, 9 May 2021 12:18:19 +0200 Subject: [PATCH] [Feature] USB - Portable user.config and relative folder (#158), version 1.0.17.39 --- Properties/AssemblyInfo.cs | 4 ++-- Utilities/AppRestart.cs | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 3a8663b..5dc9b0c 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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")] diff --git a/Utilities/AppRestart.cs b/Utilities/AppRestart.cs index 5798c9c..b913f72 100644 --- a/Utilities/AppRestart.cs +++ b/Utilities/AppRestart.cs @@ -5,6 +5,7 @@ namespace SystemTrayMenu.Utilities { using System; + using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Windows.Forms; @@ -44,7 +45,14 @@ namespace SystemTrayMenu.Utilities p.StartInfo = new ProcessStartInfo( Process.GetCurrentProcess(). MainModule.FileName); - p.Start(); + try + { + p.Start(); + } + catch (Win32Exception ex) + { + Log.Warn("Restart failed", ex); + } } Application.Exit();