Default values for preview info

This commit is contained in:
Vic 2023-04-21 23:45:09 +08:00
parent 96f52314ef
commit 0c4f50a89f

View file

@ -240,19 +240,19 @@ namespace Flow.Launcher.Plugin
/// <summary> /// <summary>
/// Full image used for preview panel /// Full image used for preview panel
/// </summary> /// </summary>
public string PreviewImagePath { get; set; } public string PreviewImagePath { get; set; } = null;
/// <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>
public bool IsMedia { get; set; } public bool IsMedia { get; set; } = false;
public string Description { get; set; } public string Description { get; set; } = null;
public IconDelegate PreviewDelegate { get; set; } public IconDelegate PreviewDelegate { get; set; } = null;
/// <summary> /// <summary>
/// File path of the result. For third-party preview programs such as QuickLook. /// File path of the result. For third-party preview programs such as QuickLook.
/// </summary> /// </summary>
public string FilePath { get; set; } public string FilePath { get; set; } = null;
public static PreviewInfo Default { get; } = new() public static PreviewInfo Default { get; } = new()
{ {