Skip to content

Commit

Permalink
Fix throwing when there is no results (#6934)
Browse files Browse the repository at this point in the history
Co-authored-by: p-storm <paul.de.man@gmail.com>
  • Loading branch information
P-Storm and p-storm committed Oct 1, 2020
1 parent b981467 commit fd32a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ private void QueryResults()
currentCancellationToken.ThrowIfCancellationRequested();
Results.Sort();
Results.SelectedItem = Results.Results[0];
Results.SelectedItem = Results.Results.FirstOrDefault();
}
}
Expand Down Expand Up @@ -574,7 +574,7 @@ private void QueryResults()
currentCancellationToken.ThrowIfCancellationRequested();
Results.Sort();
Results.SelectedItem = Results.Results[0];
Results.SelectedItem = Results.Results.FirstOrDefault();
}
}
Expand Down

0 comments on commit fd32a6f

Please sign in to comment.