From 2c8330cba11f5ba36d73e6f8ff29f4fa71bca7d7 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 15 Apr 2021 14:06:53 +1000 Subject: [PATCH 1/2] allow subtitle not set by providing default value --- Flow.Launcher.Plugin/Result.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 70be1e9dc05..94dde77dd78 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -10,9 +10,12 @@ public class Result { private string _pluginDirectory; + private string _icoPath; + public string Title { get; set; } - public string SubTitle { get; set; } + + public string SubTitle { get; set; } = string.Empty; /// /// This holds the action keyword that triggered the result. From f0a739128e894b5adda2c5c01f5f07b0c247b06b Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 15 Apr 2021 14:09:01 +1000 Subject: [PATCH 2/2] add comments to title and subtitle properties --- Flow.Launcher.Plugin/Result.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 94dde77dd78..ac9c10df05b 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -13,8 +13,14 @@ public class Result private string _icoPath; + /// + /// Provides the title of the result. This is always required. + /// public string Title { get; set; } + /// + /// Provides additional details for the result. This is optional + /// public string SubTitle { get; set; } = string.Empty; ///