Use null to distinguish between home query and global query

This commit is contained in:
Jack251970 2025-05-04 18:29:39 +08:00
parent 67facb8f18
commit 21d6ec20d4
2 changed files with 3 additions and 1 deletions

View file

@ -16,7 +16,8 @@ namespace Flow.Launcher.Core.Plugin
Search = string.Empty,
RawQuery = string.Empty,
SearchTerms = Array.Empty<string>(),
ActionKeyword = string.Empty
// must use null because we need to distinguish between home query and global query
ActionKeyword = null
};
}

View file

@ -53,6 +53,7 @@ namespace Flow.Launcher.Plugin
/// <summary>
/// The action keyword part of this query.
/// For global plugins this value will be empty.
/// For home query this value will be null.
/// </summary>
public string ActionKeyword { get; init; }