mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue