mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve code comments
This commit is contained in:
parent
e9c1cffd33
commit
dec1e77b0c
2 changed files with 4 additions and 4 deletions
|
|
@ -28,7 +28,7 @@ public partial class SearchDelaySpeedWindow : Window
|
|||
selected = searchDelaySpeeds.FirstOrDefault(x => x.Value == _pluginViewModel.PluginSearchDelay);
|
||||
}
|
||||
// Add default value to the beginning of the list
|
||||
// This value should be null
|
||||
// When _pluginViewModel.PluginSearchDelay equals null, we will select this
|
||||
searchDelaySpeeds.Insert(0, new SearchDelaySpeedData { Display = App.API.GetTranslation(PluginViewModel.DefaultLocalizationKey), LocalizationKey = PluginViewModel.DefaultLocalizationKey });
|
||||
selected ??= searchDelaySpeeds.FirstOrDefault();
|
||||
tbDelay.ItemsSource = searchDelaySpeeds;
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
if (QueryResultsSelected())
|
||||
{
|
||||
// When we are requiring, we should not delay the query
|
||||
// When we are re-querying, we should not delay the query
|
||||
_ = QueryResultsAsync(false, isReQuery: true);
|
||||
}
|
||||
}
|
||||
|
|
@ -306,7 +306,7 @@ namespace Flow.Launcher.ViewModel
|
|||
public void ReQuery(bool reselect)
|
||||
{
|
||||
BackToQueryResults();
|
||||
// When we are requiring, we should not delay the query
|
||||
// When we are re-querying, we should not delay the query
|
||||
_ = QueryResultsAsync(false, isReQuery: true, reSelect: reselect);
|
||||
}
|
||||
|
||||
|
|
@ -660,7 +660,7 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
else if (isReQuery)
|
||||
{
|
||||
// When we are requiring, we should not delay the query
|
||||
// When we are re-querying, we should not delay the query
|
||||
await QueryAsync(false, isReQuery: true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue