mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-29 03:20:46 +12:00
Fix crash on opening About's details, version 0.9.2.31
This commit is contained in:
parent
1cb0aaaa49
commit
f31afbda39
|
@ -35,5 +35,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("0.9.2.29")]
|
||||
[assembly: AssemblyFileVersion("0.9.2.29")]
|
||||
[assembly: AssemblyVersion("0.9.2.31")]
|
||||
[assembly: AssemblyFileVersion("0.9.2.31")]
|
||||
|
|
|
@ -192,9 +192,12 @@ namespace SystemTrayMenu.UserInterface
|
|||
private static DateTime AssemblyLastWriteTime(Assembly a)
|
||||
{
|
||||
DateTime assemblyLastWriteTime = DateTime.MaxValue;
|
||||
if (!string.IsNullOrEmpty(a.Location))
|
||||
{
|
||||
assemblyLastWriteTime = File.GetLastWriteTime(a.Location);
|
||||
if (!a.IsDynamic) // Location property not available for dynamic assemblies
|
||||
{
|
||||
if (!string.IsNullOrEmpty(a.Location))
|
||||
{
|
||||
assemblyLastWriteTime = File.GetLastWriteTime(a.Location);
|
||||
}
|
||||
}
|
||||
|
||||
return assemblyLastWriteTime;
|
||||
|
|
Loading…
Reference in a new issue