fix result modifier not working

This commit is contained in:
Hongtao Zhang 2022-11-22 11:24:35 -06:00
parent e5d95f36b3
commit bc28da7184
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -241,10 +241,13 @@ namespace Flow.Launcher.ViewModel
}
}
[RelayCommand]
private async Task OpenResult()
private async Task OpenResultAsync(string index)
{
var results = SelectedResults;
if (index is not null)
{
results.SelectedIndex = int.Parse(index);
}
var result = results.SelectedItem?.Result;
if (result == null)
{