mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Record user selection after successful execution
This commit is contained in:
parent
df4f08b071
commit
b13c29ab91
1 changed files with 5 additions and 18 deletions
|
|
@ -1358,25 +1358,12 @@ namespace Flow.Launcher.ViewModel
|
||||||
var reflectResult = await ResultHelper.PopulateResultsAsync(h);
|
var reflectResult = await ResultHelper.PopulateResultsAsync(h);
|
||||||
if (reflectResult != null)
|
if (reflectResult != null)
|
||||||
{
|
{
|
||||||
if (reflectResult.Action != null)
|
// Record the user selected record for result ranking
|
||||||
{
|
_userSelectedRecord.Add(reflectResult);
|
||||||
// Record the user selected record for result ranking
|
|
||||||
_userSelectedRecord.Add(reflectResult);
|
|
||||||
|
|
||||||
// Since some actions may need to hide the Flow window to execute
|
// Since some actions may need to hide the Flow window to execute
|
||||||
// So let us populate the results of them
|
// So let us populate the results of them
|
||||||
return reflectResult.Action(c);
|
return await reflectResult.ExecuteAsync(c);
|
||||||
}
|
|
||||||
if (reflectResult.AsyncAction != null)
|
|
||||||
{
|
|
||||||
// Record the user selected record for result ranking
|
|
||||||
_userSelectedRecord.Add(reflectResult);
|
|
||||||
|
|
||||||
// Since some actions may need to hide the Flow window to execute
|
|
||||||
// So let us populate the results of them
|
|
||||||
return await reflectResult.AsyncAction(c);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we cannot get the result, fallback to re-query
|
// If we cannot get the result, fallback to re-query
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue