mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-20 19:30:31 +12:00
[BUG] In version 1.2.4 FileNotFoundException when logfile not exists (#318), version 1.2.5.0
This commit is contained in:
parent
168c67e992
commit
b32f8aaffd
|
@ -10,7 +10,7 @@
|
|||
<Identity
|
||||
Name="49543SystemTrayMenu.SystemTrayMenu"
|
||||
Publisher="CN=5884501C-92ED-45DE-9508-9D987C314243"
|
||||
Version="1.2.4.0" />
|
||||
Version="1.2.5.0" />
|
||||
|
||||
<Properties>
|
||||
<DisplayName>SystemTrayMenu</DisplayName>
|
||||
|
|
|
@ -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.4.0")]
|
||||
[assembly: AssemblyFileVersion("1.2.4.0")]
|
||||
[assembly: AssemblyVersion("1.2.5.0")]
|
||||
[assembly: AssemblyFileVersion("1.2.5.0")]
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace SystemTrayMenu.Utilities
|
|||
{
|
||||
string fileNamePath = GetLogFilePath();
|
||||
FileInfo fileInfo = new(fileNamePath);
|
||||
if (fileInfo.Length > 2000000)
|
||||
if (fileInfo.Exists && fileInfo.Length > 2000000)
|
||||
{
|
||||
string fileNamePathLast = GetLogFilePath(LogfileLastExtension);
|
||||
|
||||
|
|
Loading…
Reference in a new issue