Skip to content

Commit dec1e77

Browse files
committed
Improve code comments
1 parent e9c1cff commit dec1e77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Flow.Launcher/SearchDelaySpeedWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private void SearchDelaySpeed_OnLoaded(object sender, RoutedEventArgs e)
2828
selected = searchDelaySpeeds.FirstOrDefault(x => x.Value == _pluginViewModel.PluginSearchDelay);
2929
}
3030
// Add default value to the beginning of the list
31-
// This value should be null
31+
// When _pluginViewModel.PluginSearchDelay equals null, we will select this
3232
searchDelaySpeeds.Insert(0, new SearchDelaySpeedData { Display = App.API.GetTranslation(PluginViewModel.DefaultLocalizationKey), LocalizationKey = PluginViewModel.DefaultLocalizationKey });
3333
selected ??= searchDelaySpeeds.FirstOrDefault();
3434
tbDelay.ItemsSource = searchDelaySpeeds;

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,15 @@ public void ReQuery()
298298
{
299299
if (QueryResultsSelected())
300300
{
301-
// When we are requiring, we should not delay the query
301+
// When we are re-querying, we should not delay the query
302302
_ = QueryResultsAsync(false, isReQuery: true);
303303
}
304304
}
305305

306306
public void ReQuery(bool reselect)
307307
{
308308
BackToQueryResults();
309-
// When we are requiring, we should not delay the query
309+
// When we are re-querying, we should not delay the query
310310
_ = QueryResultsAsync(false, isReQuery: true, reSelect: reselect);
311311
}
312312

@@ -660,7 +660,7 @@ private async Task ChangeQueryTextAsync(string queryText, bool isReQuery = false
660660
}
661661
else if (isReQuery)
662662
{
663-
// When we are requiring, we should not delay the query
663+
// When we are re-querying, we should not delay the query
664664
await QueryAsync(false, isReQuery: true);
665665
}
666666

0 commit comments

Comments
 (0)