Skip to content

Commit 21d6ec2

Browse files
committed
Use null to distinguish between home query and global query
1 parent 67facb8 commit 21d6ec2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Flow.Launcher.Core/Plugin/QueryBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public static Query Build(string text, Dictionary<string, PluginPair> nonGlobalP
1616
Search = string.Empty,
1717
RawQuery = string.Empty,
1818
SearchTerms = Array.Empty<string>(),
19-
ActionKeyword = string.Empty
19+
// must use null because we need to distinguish between home query and global query
20+
ActionKeyword = null
2021
};
2122
}
2223

Flow.Launcher.Plugin/Query.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public class Query
5353
/// <summary>
5454
/// The action keyword part of this query.
5555
/// For global plugins this value will be empty.
56+
/// For home query this value will be null.
5657
/// </summary>
5758
public string ActionKeyword { get; init; }
5859

0 commit comments

Comments
 (0)