From ba03a134dab19e2a5924c11088fdd35c3426e332 Mon Sep 17 00:00:00 2001 From: ryanbodrug-microsoft <56318517+ryanbodrug-microsoft@users.noreply.github.com> Date: Wed, 17 Jun 2020 19:30:35 -0700 Subject: [PATCH] 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 --- src/modules/launcher/PowerLauncher/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/launcher/PowerLauncher/App.xaml.cs b/src/modules/launcher/PowerLauncher/App.xaml.cs index c036121d25..32cb27e337 100644 --- a/src/modules/launcher/PowerLauncher/App.xaml.cs +++ b/src/modules/launcher/PowerLauncher/App.xaml.cs @@ -127,7 +127,7 @@ namespace PowerLauncher [DllImport("kernel32.dll", SetLastError = true)] private static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds); - private void WaitForPowerToysRunner() + private static void WaitForPowerToysRunner() { Task.Run(() => {