Skip to content

Commit 8e7e173

Browse files
committed
Add code comments
1 parent fa350dd commit 8e7e173

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ public SettingsPaneThemeViewModel(Settings settings, Theme theme)
479479
)
480480
}
481481
};
482+
// Set main view model to null because this results are for preview only
482483
var vm = new ResultsViewModel(Settings, null);
483484
vm.AddResults(results, "PREVIEW");
484485
PreviewResults = vm;

Flow.Launcher/ViewModel/ResultsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private void UpdateResults(List<ResultViewModel> newResults, bool reselect = tru
211211
switch (Visibility)
212212
{
213213
case Visibility.Collapsed when Results.Count > 0:
214-
if (_mainVM == null || // The results is for preview only in apprerance page
214+
if (_mainVM == null || // The results are for preview only in apprerance page
215215
_mainVM.ResultsSelected(this)) // The results are selected
216216
{
217217
SelectedIndex = 0;

0 commit comments

Comments
 (0)