mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
Better comment
This commit is contained in:
@@ -460,8 +460,8 @@ namespace Wox
|
|||||||
{
|
{
|
||||||
Dispatcher.DelayInvoke("ClearResults", () =>
|
Dispatcher.DelayInvoke("ClearResults", () =>
|
||||||
{
|
{
|
||||||
// first try to use clear method inside pnlResult, which is more closer to the add new results
|
// Delay the invocation of clear method of pnlResult, minimize the time-span between clear results and add new results.
|
||||||
// and this will not bring splash issues.After waiting 100ms, if there still no results added, we
|
// 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
|
// must clear the result. otherwise, it will be confused why the query changed, but the results
|
||||||
// didn't.
|
// didn't.
|
||||||
if (pnlResult.Dirty) pnlResult.Clear();
|
if (pnlResult.Dirty) pnlResult.Clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user