From 21d6ec20d45597ad872341afbcb82ef85a85ee87 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sun, 4 May 2025 18:29:39 +0800 Subject: [PATCH] Use null to distinguish between home query and global query --- Flow.Launcher.Core/Plugin/QueryBuilder.cs | 3 ++- Flow.Launcher.Plugin/Query.cs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Core/Plugin/QueryBuilder.cs b/Flow.Launcher.Core/Plugin/QueryBuilder.cs index fae821736..82745c239 100644 --- a/Flow.Launcher.Core/Plugin/QueryBuilder.cs +++ b/Flow.Launcher.Core/Plugin/QueryBuilder.cs @@ -16,7 +16,8 @@ namespace Flow.Launcher.Core.Plugin Search = string.Empty, RawQuery = string.Empty, SearchTerms = Array.Empty(), - ActionKeyword = string.Empty + // must use null because we need to distinguish between home query and global query + ActionKeyword = null }; } diff --git a/Flow.Launcher.Plugin/Query.cs b/Flow.Launcher.Plugin/Query.cs index c3eede4c6..7d98a4afe 100644 --- a/Flow.Launcher.Plugin/Query.cs +++ b/Flow.Launcher.Plugin/Query.cs @@ -53,6 +53,7 @@ namespace Flow.Launcher.Plugin /// /// The action keyword part of this query. /// For global plugins this value will be empty. + /// For home query this value will be null. /// public string ActionKeyword { get; init; }