Skip to content

Commit 1ddfabc

Browse files
committed
Update code comments
1 parent 72b0fbf commit 1ddfabc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,10 +649,11 @@ private async Task ChangeQueryTextAsync(string queryText, bool isReQuery = false
649649

650650
if (QueryText != queryText)
651651
{
652-
// re-query is done in QueryText's setter method
652+
// Change query text first
653653
QueryText = queryText;
654654
// When we are changing query from codes, we should not delay the query
655655
await QueryAsync(false, isReQuery: false);
656+
656657
// set to false so the subsequent set true triggers
657658
// PropertyChanged and MoveQueryTextToEnd is called
658659
QueryTextCursorMovedToEnd = false;
@@ -730,7 +731,8 @@ private ResultsViewModel SelectedResults
730731
// so we need manually call Query()
731732
// http://stackoverflow.com/posts/25895769/revisions
732733
QueryText = string.Empty;
733-
// When we are changing query from selected results, we should not delay the query
734+
// When we are changing query because selected results are changed to history or context menu,
735+
// we should not delay the query
734736
Query(false);
735737

736738
if (HistorySelected())

0 commit comments

Comments
 (0)