Add code comments

This commit is contained in:
Jack251970 2025-05-13 10:48:00 +08:00
parent 58f80996b7
commit fa350ddb07

View file

@ -211,8 +211,8 @@ namespace Flow.Launcher.ViewModel
switch (Visibility)
{
case Visibility.Collapsed when Results.Count > 0:
// Show it only if the results are selected
if (_mainVM == null || _mainVM.ResultsSelected(this))
if (_mainVM == null || // The results is for preview only in apprerance page
_mainVM.ResultsSelected(this)) // The results are selected
{
SelectedIndex = 0;
Visibility = Visibility.Visible;