From 96f52314efc4b391f5e0f165fab7dc34d8f9f281 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 21 Apr 2023 22:16:44 +0800 Subject: [PATCH] Add FilePath for Explorer results preview --- .../Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs index 83c173ac6..62e41a41c 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs @@ -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);