[Feature] Improve performance case Lnk and host not exists (#167), version 1.0.17.27

This commit is contained in:
Markus Hofknecht 2021-05-02 10:11:50 +02:00
parent a005582d5e
commit 2fd0270a1b
2 changed files with 10 additions and 10 deletions

View file

@ -270,14 +270,14 @@ namespace SystemTrayMenu.DataClasses
{
bool handled = false;
resolvedLnkPath = FileLnk.GetResolvedFileName(TargetFilePath);
//if (FileLnk.IsNetworkPath(resolvedLnkPath))
//{
// string nameOrAdress = resolvedLnkPath.Split(@"\\")[1].Split(@"\").First();
// if (!FileLnk.PingHost(nameOrAdress))
// {
// return handled;
// }
//}
if (FileLnk.IsNetworkPath(resolvedLnkPath))
{
string nameOrAdress = resolvedLnkPath.Split(@"\\")[1].Split(@"\").First();
if (!FileLnk.PingHost(nameOrAdress))
{
return handled;
}
}
if (FileLnk.IsDirectory(resolvedLnkPath))
{

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
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.17.26")]
[assembly: AssemblyFileVersion("1.0.17.26")]
[assembly: AssemblyVersion("1.0.17.27")]
[assembly: AssemblyFileVersion("1.0.17.27")]