Add FilePath property for PreviewInfo

This commit is contained in:
Vic 2023-04-21 22:13:33 +08:00
parent 04cdfed901
commit 71376b8beb

View file

@ -241,6 +241,7 @@ namespace Flow.Launcher.Plugin
/// Full image used for preview panel /// Full image used for preview panel
/// </summary> /// </summary>
public string PreviewImagePath { get; set; } public string PreviewImagePath { get; set; }
/// <summary> /// <summary>
/// Determines if the preview image should occupy the full width of the preview panel. /// Determines if the preview image should occupy the full width of the preview panel.
/// </summary> /// </summary>
@ -248,12 +249,18 @@ namespace Flow.Launcher.Plugin
public string Description { get; set; } public string Description { get; set; }
public IconDelegate PreviewDelegate { get; set; } public IconDelegate PreviewDelegate { get; set; }
/// <summary>
/// File path of the result. For third-party preview programs such as QuickLook.
/// </summary>
public string FilePath { get; set; }
public static PreviewInfo Default { get; } = new() public static PreviewInfo Default { get; } = new()
{ {
PreviewImagePath = null, PreviewImagePath = null,
Description = null, Description = null,
IsMedia = false, IsMedia = false,
PreviewDelegate = null, PreviewDelegate = null,
FilePath = null,
}; };
} }
} }