mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-17 19:02:27 +12:00
[Feature] Improve performance case Lnk and host not exists (#167), version 1.0.17.27
This commit is contained in:
parent
a005582d5e
commit
2fd0270a1b
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue