mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 19:19:23 +08:00
Better comment
This commit is contained in:
parent
ad8b6c806d
commit
251834143c
@ -460,8 +460,8 @@ namespace Wox
|
||||
{
|
||||
Dispatcher.DelayInvoke("ClearResults", () =>
|
||||
{
|
||||
// first try to use clear method inside pnlResult, which is more closer to the add new results
|
||||
// and this will not bring splash issues.After waiting 100ms, if there still no results added, we
|
||||
// Delay the invocation of clear method of pnlResult, minimize the time-span between clear results and add new results.
|
||||
// So this will reduce splash issues. After waiting 100ms, if there still no results added, we
|
||||
// must clear the result. otherwise, it will be confused why the query changed, but the results
|
||||
// didn't.
|
||||
if (pnlResult.Dirty) pnlResult.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user