mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-29 16:51:18 +13: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
3 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
||||||
<Identity
|
<Identity
|
||||||
Name="49543SystemTrayMenu.SystemTrayMenu"
|
Name="49543SystemTrayMenu.SystemTrayMenu"
|
||||||
Publisher="CN=5884501C-92ED-45DE-9508-9D987C314243"
|
Publisher="CN=5884501C-92ED-45DE-9508-9D987C314243"
|
||||||
Version="1.2.4.0" />
|
Version="1.2.5.0" />
|
||||||
|
|
||||||
<Properties>
|
<Properties>
|
||||||
<DisplayName>SystemTrayMenu</DisplayName>
|
<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
|
// 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.2.4.0")]
|
[assembly: AssemblyVersion("1.2.5.0")]
|
||||||
[assembly: AssemblyFileVersion("1.2.4.0")]
|
[assembly: AssemblyFileVersion("1.2.5.0")]
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace SystemTrayMenu.Utilities
|
||||||
{
|
{
|
||||||
string fileNamePath = GetLogFilePath();
|
string fileNamePath = GetLogFilePath();
|
||||||
FileInfo fileInfo = new(fileNamePath);
|
FileInfo fileInfo = new(fileNamePath);
|
||||||
if (fileInfo.Length > 2000000)
|
if (fileInfo.Exists && fileInfo.Length > 2000000)
|
||||||
{
|
{
|
||||||
string fileNamePathLast = GetLogFilePath(LogfileLastExtension);
|
string fileNamePathLast = GetLogFilePath(LogfileLastExtension);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue