Fix for CA1822:

Severity Code Description Project File Line Suppression State
Warning CA1822 Member 'WaitForPowerToysRunner' does not access instance data and can be marked as static PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\App.xaml.cs 130 Active
This commit is contained in:
ryanbodrug-microsoft 2020-06-17 19:30:35 -07:00
parent 9184c64ecb
commit ba03a134da

View File

@ -127,7 +127,7 @@ namespace PowerLauncher
[DllImport("kernel32.dll", SetLastError = true)] [DllImport("kernel32.dll", SetLastError = true)]
private static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds); private static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds);
private void WaitForPowerToysRunner() private static void WaitForPowerToysRunner()
{ {
Task.Run(() => Task.Run(() =>
{ {