mirror of
https://github.com/lin-ycv/EverythingPowerToys.git
synced 2025-01-07 03:16:41 +08:00
Update NativeMethods.cs
This commit is contained in:
parent
0af6aad781
commit
6e8dc04fbf
@ -156,13 +156,12 @@ namespace Community.PowerToys.Run.Plugin.Everything
|
||||
string fullPath = sb.ToString();
|
||||
string name = Path.GetFileName(fullPath);
|
||||
string path;
|
||||
bool isFolder = Path.HasExtension(fullPath);
|
||||
bool isFolder = Path.HasExtension(fullPath.Replace(".lnk", string.Empty));
|
||||
if (isFolder)
|
||||
path = fullPath;
|
||||
else
|
||||
path = Path.GetDirectoryName(fullPath);
|
||||
fullPath = fullPath.Replace(".lnk", string.Empty);
|
||||
string ext = Path.GetExtension(fullPath);
|
||||
string ext = Path.GetExtension(fullPath.Replace(".lnk", string.Empty));
|
||||
|
||||
var r = new Result()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user