Skip to content

Commit f22ce37

Browse files
committed
rename params to isReQuery for consistency
1 parent a360ac1 commit f22ce37

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private void ReQuery()
210210
{
211211
if (SelectedIsFromQueryResults())
212212
{
213-
QueryResults(reQuery: true);
213+
QueryResults(isReQuery: true);
214214
}
215215
}
216216

@@ -504,8 +504,8 @@ private void UpdatePreview()
504504
/// but we don't want to move cursor to end when query is updated from TextBox
505505
/// </summary>
506506
/// <param name="queryText"></param>
507-
/// <param name="reQuery">Force query even when Query Text doesn't change</param>
508-
public void ChangeQueryText(string queryText, bool reQuery = false)
507+
/// <param name="isReQuery">Force query even when Query Text doesn't change</param>
508+
public void ChangeQueryText(string queryText, bool isReQuery = false)
509509
{
510510
Application.Current.Dispatcher.Invoke(() =>
511511
{
@@ -519,9 +519,9 @@ public void ChangeQueryText(string queryText, bool reQuery = false)
519519
QueryTextCursorMovedToEnd = false;
520520

521521
}
522-
else if (reQuery)
522+
else if (isReQuery)
523523
{
524-
Query(reQuery: true);
524+
Query(isReQuery: true);
525525
}
526526
QueryTextCursorMovedToEnd = true;
527527
});
@@ -621,11 +621,11 @@ public string PreviewHotkey
621621

622622
#region Query
623623

624-
public void Query(bool reQuery = false)
624+
public void Query(bool isReQuery = false)
625625
{
626626
if (SelectedIsFromQueryResults())
627627
{
628-
QueryResults(reQuery);
628+
QueryResults(isReQuery);
629629
}
630630
else if (ContextMenuSelected())
631631
{
@@ -725,7 +725,7 @@ private void QueryHistory()
725725

726726
private readonly IReadOnlyList<Result> _emptyResult = new List<Result>();
727727

728-
private async void QueryResults(bool reQuery = false)
728+
private async void QueryResults(bool isReQuery = false)
729729
{
730730
_updateSource?.Cancel();
731731

@@ -757,7 +757,7 @@ private async void QueryResults(bool reQuery = false)
757757
return;
758758

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

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

0 commit comments

Comments
 (0)