From 71376b8bebd157f7139b001d18a5b73b328bbea2 Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Fri, 21 Apr 2023 22:13:33 +0800
Subject: [PATCH] Add FilePath property for PreviewInfo
---
Flow.Launcher.Plugin/Result.cs | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs
index 1c4467762..da5b3c774 100644
--- a/Flow.Launcher.Plugin/Result.cs
+++ b/Flow.Launcher.Plugin/Result.cs
@@ -241,6 +241,7 @@ namespace Flow.Launcher.Plugin
/// Full image used for preview panel
///
public string PreviewImagePath { get; set; }
+
///
/// Determines if the preview image should occupy the full width of the preview panel.
///
@@ -248,12 +249,18 @@ namespace Flow.Launcher.Plugin
public string Description { get; set; }
public IconDelegate PreviewDelegate { get; set; }
+ ///
+ /// File path of the result. For third-party preview programs such as QuickLook.
+ ///
+ public string FilePath { get; set; }
+
public static PreviewInfo Default { get; } = new()
{
PreviewImagePath = null,
Description = null,
IsMedia = false,
PreviewDelegate = null,
+ FilePath = null,
};
}
}