remove check of empty of Results when change selected index

This commit is contained in:
弘韬 张 2020-11-14 17:20:48 +08:00
parent 0af9fb0df9
commit 7dc247333c

View file

@ -171,9 +171,7 @@ namespace Flow.Launcher.ViewModel
{
// https://social.msdn.microsoft.com/Forums/vstudio/en-US/5ff71969-f183-4744-909d-50f7cd414954/binding-a-tabcontrols-selectedindex-not-working?forum=wpf
// fix selected index flow
if (Results.Count > 0)
SelectedIndex = 0;
SelectedIndex = 0;
Results.Update(newResults);
}