Better comment

This commit is contained in:
bao-qian
2015-10-30 23:18:05 +00:00
parent ad8b6c806d
commit 251834143c

View File

@@ -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();