mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 18:29:24 +08:00
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:
parent
9184c64ecb
commit
ba03a134da
@ -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(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user