🥕 优化everything 搜索结果

This commit is contained in:
BookerLiu
2023-04-17 14:12:31 +08:00
parent 6072832654
commit 48fffa6da7
4 changed files with 35 additions and 19 deletions

View File

@@ -185,9 +185,10 @@ namespace GeekDesk.Plugins.EveryThing
| EveryThingConst.EVERYTHING_REQUEST_DATE_MODIFIED
| EveryThingConst.EVERYTHING_REQUEST_SIZE);
EveryThingUtil.Everything_SetSort(
EveryThingConst.EVERYTHING_SORT_DATE_MODIFIED_DESCENDING
| EveryThingConst.EVERYTHING_SORT_TYPE_NAME_DESCENDING
| EveryThingConst.EVERYTHING_SORT_RUN_COUNT_DESCENDING);
EveryThingConst.EVERYTHING_SORT_TYPE_NAME_DESCENDING
| EveryThingConst.EVERYTHING_SORT_RUN_COUNT_DESCENDING
| EveryThingConst.EVERYTHING_SORT_DATE_MODIFIED_DESCENDING
);
EveryThingUtil.Everything_Query(true);
return NextPage();
}
@@ -220,15 +221,15 @@ namespace GeekDesk.Plugins.EveryThing
ext = System.IO.Path.GetExtension(filePath).ToLower();
}
if (".lnk".Equals(ext))
{
//if (".lnk".Equals(ext))
//{
string targetPath = FileUtil.GetTargetPathByLnk(filePath);
if (targetPath != null)
{
filePath = targetPath;
}
}
// string targetPath = FileUtil.GetTargetPathByLnk(filePath);
// if (targetPath != null)
// {
// filePath = targetPath;
// }
//}
string name = System.IO.Path.GetFileNameWithoutExtension(tempPath);
if (string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(tempPath))