mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve code quality
This commit is contained in:
parent
10d353defe
commit
4b6ee4ea98
1 changed files with 7 additions and 2 deletions
|
|
@ -422,7 +422,6 @@ namespace Flow.Launcher.ViewModel
|
||||||
_ = Task.Run(() => DialogJump.JumpToPathAsync(DialogWindowHandle, dialogJumpResult.DialogJumpPath));
|
_ = Task.Run(() => DialogJump.JumpToPathAsync(DialogWindowHandle, dialogJumpResult.DialogJumpPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1358,14 +1357,20 @@ namespace Flow.Launcher.ViewModel
|
||||||
{
|
{
|
||||||
if (reflectResult.Action != null)
|
if (reflectResult.Action != null)
|
||||||
{
|
{
|
||||||
|
// Since some actions may need to hide the Flow window to execute
|
||||||
|
// So let us populate the results of them
|
||||||
return reflectResult.Action(c);
|
return reflectResult.Action(c);
|
||||||
}
|
}
|
||||||
if (reflectResult.AsyncAction != null)
|
if (reflectResult.AsyncAction != null)
|
||||||
{
|
{
|
||||||
return await reflectResult.AsyncAction(c);
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we cannot get the result, fallback to re-query
|
||||||
App.API.BackToQueryResults();
|
App.API.BackToQueryResults();
|
||||||
App.API.ChangeQuery(h.Query);
|
App.API.ChangeQuery(h.Query);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue