[Feature] Show link overlay for files like lnk & URL (#166), version 1.0.17.41

revert
Revision: a005582d5e
Author: Markus Hofknecht <Markus@Hofknecht.eu>
Date: 02.05.2021 10:05:33
Message:
[Feature] Show link overlay for files like lnk & URL (#166), version 1.0.17.26

----
Modified: DataClasses/RowData.cs
Modified: Utilities/File/FileLnk.cs
Modified: Utilities/File/IconReader.cs
This commit is contained in:
Markus Hofknecht 2021-05-09 22:44:35 +02:00
parent cae6aa7922
commit d4fb5afdc7
2 changed files with 4 additions and 6 deletions

View file

@ -303,8 +303,7 @@ namespace SystemTrayMenu.DataClasses
{ {
try try
{ {
icon = IconReader.GetFileIconWithCache(iconLocation, true, out bool toDispose); icon = Icon.ExtractAssociatedIcon(iconLocation);
diposeIcon = toDispose;
handled = true; handled = true;
} }
catch (ArgumentException ex) catch (ArgumentException ex)
@ -341,8 +340,7 @@ namespace SystemTrayMenu.DataClasses
} }
else if (System.IO.File.Exists(iconFile)) else if (System.IO.File.Exists(iconFile))
{ {
icon = IconReader.GetFileIconWithCache(iconFile, true, out bool toDispose); icon = Icon.ExtractAssociatedIcon(iconFile);
diposeIcon = toDispose;
handled = true; handled = true;
} }
else else

View file

@ -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.0.17.40")] [assembly: AssemblyVersion("1.0.17.41")]
[assembly: AssemblyFileVersion("1.0.17.40")] [assembly: AssemblyFileVersion("1.0.17.41")]