mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Severity Code Description Project File Line Suppression State
Warning CA1801 Parameter text of method DelayedCheck is never used. Remove the parameter or use it in the method body. PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\MainWindow.xaml.cs 303 Active
This commit is contained in:
parent
6ea181c286
commit
10d6a1fa54
@ -306,12 +306,12 @@ namespace PowerLauncher
|
||||
_viewModel.QueryText = text;
|
||||
var latestTimeOfTyping = DateTime.Now;
|
||||
|
||||
Task.Run(() => DelayedCheck(latestTimeOfTyping, text));
|
||||
Task.Run(() => DelayedCheck(latestTimeOfTyping));
|
||||
s_lastTimeOfTyping = latestTimeOfTyping;
|
||||
}
|
||||
}
|
||||
|
||||
private async Task DelayedCheck(DateTime latestTimeOfTyping, string text)
|
||||
private async Task DelayedCheck(DateTime latestTimeOfTyping)
|
||||
{
|
||||
await Task.Delay(millisecondsToWait);
|
||||
if (latestTimeOfTyping.Equals(s_lastTimeOfTyping))
|
||||
|
Loading…
Reference in New Issue
Block a user