mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add FilePath for Explorer results preview
This commit is contained in:
parent
71376b8beb
commit
96f52314ef
1 changed files with 6 additions and 1 deletions
|
|
@ -235,7 +235,12 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
internal static Result CreateFileResult(string filePath, Query query, int score = 0, bool windowsIndexed = false)
|
||||
{
|
||||
Result.PreviewInfo preview = IsMedia(Path.GetExtension(filePath))
|
||||
? new Result.PreviewInfo { IsMedia = true, PreviewImagePath = filePath, }
|
||||
? new Result.PreviewInfo
|
||||
{
|
||||
IsMedia = true,
|
||||
PreviewImagePath = filePath,
|
||||
FilePath = filePath,
|
||||
}
|
||||
: Result.PreviewInfo.Default;
|
||||
|
||||
var title = Path.GetFileName(filePath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue