mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 22:43:31 +08:00
Bugfix for #404
When opening containing folder for `*.lnk` that cannot be resolved to a file name, the folder containing the `.lnk` will be opened.
This commit is contained in:
parent
bb9684f7d3
commit
dd65c173a9
@ -224,7 +224,9 @@ namespace Wox.Plugin.Program
|
||||
if (Path.EndsWith(".lnk"))
|
||||
{
|
||||
//get location of shortcut
|
||||
Path = ResolveShortcut(Path);
|
||||
var resolved = ResolveShortcut(Path);
|
||||
if(!string.IsNullOrEmpty(resolved))
|
||||
Path = resolved;
|
||||
}
|
||||
//get parent folder
|
||||
Path = Directory.GetParent(Path).FullName;
|
||||
|
Loading…
Reference in New Issue
Block a user