Skip to content

Commit a360ac1

Browse files
committed
Query: rename IsForced property to IsReQuery
1 parent fa783a9 commit a360ac1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Flow.Launcher.Plugin/Query.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ public Query(string rawQuery, string search, string[] terms, string[] searchTerm
3131

3232
/// <summary>
3333
/// Determines whether the query was forced to execute again.
34+
/// For example, the value will be true when the user presses Ctrl + R.
3435
/// When this property is true, plugins handling this query should avoid serving cached results.
3536
/// </summary>
36-
public bool IsForced { get; internal set; } = false;
37+
public bool IsReQuery { get; internal set; } = false;
3738

3839
/// <summary>
3940
/// Search part of a query.

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ private async void QueryResults(bool reQuery = false)
756756
if (currentCancellationToken.IsCancellationRequested)
757757
return;
758758

759-
// Update the query's IsForced property to true if this is a re-query
760-
query.IsForced = reQuery;
759+
// Update the query's IsReQuery property to true if this is a re-query
760+
query.IsReQuery = reQuery;
761761

762762
// handle the exclusiveness of plugin using action keyword
763763
RemoveOldQueryResults(query);

0 commit comments

Comments
 (0)