mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
Refactoring DelayInvoke
In MainWindow.xaml.cs, the reference of originQuery, lastQuery and tbQuery.Text are same, so remove originQuery is fine.
This commit is contained in:
@@ -225,7 +225,7 @@ namespace Wox
|
||||
if (e.AddedItems.Count > 0 && e.AddedItems[0] != null)
|
||||
{
|
||||
lbResults.ScrollIntoView(e.AddedItems[0]);
|
||||
Dispatcher.DelayInvoke("UpdateItemNumber", o =>
|
||||
Dispatcher.DelayInvoke("UpdateItemNumber", () =>
|
||||
{
|
||||
UpdateItemNumber();
|
||||
}, TimeSpan.FromMilliseconds(3));
|
||||
|
||||
Reference in New Issue
Block a user