Skip to content

Commit

Permalink
[BUG] In version 1.2.4 FileNotFoundException when logfile not exists (#…
Browse files Browse the repository at this point in the history
…318), version 1.2.5.0
  • Loading branch information
Hofknecht committed Feb 7, 2022
1 parent 168c67e commit b32f8aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Packaging/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
// 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")]
2 changes: 1 addition & 1 deletion Utilities/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal static void Initialize()
{
string fileNamePath = GetLogFilePath();
FileInfo fileInfo = new(fileNamePath);
if (fileInfo.Length > 2000000)
if (fileInfo.Exists && fileInfo.Length > 2000000)
{
string fileNamePathLast = GetLogFilePath(LogfileLastExtension);

Expand Down

0 comments on commit b32f8aa

Please sign in to comment.