From 0c4f50a89f2e7b9375c2371e1bca56ea0adfb9f0 Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Fri, 21 Apr 2023 23:45:09 +0800
Subject: [PATCH] Default values for preview info
---
Flow.Launcher.Plugin/Result.cs | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs
index da5b3c774..f618645c4 100644
--- a/Flow.Launcher.Plugin/Result.cs
+++ b/Flow.Launcher.Plugin/Result.cs
@@ -240,19 +240,19 @@ namespace Flow.Launcher.Plugin
///
/// Full image used for preview panel
///
- public string PreviewImagePath { get; set; }
-
+ public string PreviewImagePath { get; set; } = null;
+
///
/// Determines if the preview image should occupy the full width of the preview panel.
///
- public bool IsMedia { get; set; }
- public string Description { get; set; }
- public IconDelegate PreviewDelegate { get; set; }
+ public bool IsMedia { get; set; } = false;
+ public string Description { get; set; } = null;
+ public IconDelegate PreviewDelegate { get; set; } = null;
///
/// File path of the result. For third-party preview programs such as QuickLook.
///
- public string FilePath { get; set; }
+ public string FilePath { get; set; } = null;
public static PreviewInfo Default { get; } = new()
{