mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
slighly reduce the delay time
This commit is contained in:
parent
4fb884cf57
commit
f11b302c37
1 changed files with 3 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
while (await _resultsUpdateQueue.OutputAvailableAsync())
|
||||
{
|
||||
await Task.Delay(30);
|
||||
await Task.Delay(20);
|
||||
_resultsUpdateQueue.TryReceiveAll(out var queue);
|
||||
UpdateResultView(queue.Where(r => !r.Token.IsCancellationRequested));
|
||||
|
||||
|
|
@ -430,9 +430,9 @@ namespace Flow.Launcher.ViewModel
|
|||
var plugins = PluginManager.ValidPluginsForQuery(query);
|
||||
Task.Run(async () =>
|
||||
{
|
||||
// Wait 50 millisecond for query change
|
||||
// Wait 45 millisecond for query change
|
||||
// if query stay the same, update the view
|
||||
await Task.Delay(50);
|
||||
await Task.Delay(45);
|
||||
if (!(_lastQuery.RawQuery == QueryText))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue