MethodName

This commit is contained in:
glax 2024-04-16 21:02:57 +02:00
parent 68b220a8d4
commit db52e10d48

View File

@ -50,7 +50,7 @@ public class Blur
if(windowInfo is {WindowHandle: 0x0})//No WindowInfo found
continue;
if(GetBlurWindow(windowInfo))
if(ShouldWindowBeBlurred(windowInfo))
if(!maximixedWindowReached)
BlurWindow(windowInfo);
else if(maximixedWindowReached)
@ -65,7 +65,7 @@ public class Blur
DeleteBlur(blurredWindow);
}
private bool GetBlurWindow(WindowInfo windowInfo)
private bool ShouldWindowBeBlurred(WindowInfo windowInfo)
{
foreach(string program in _blurPrograms)
if (windowInfo.ProcessInfo.ProcessName.Contains(program, StringComparison.OrdinalIgnoreCase))