Skip to content

Commit 92249e9

Browse files
committed
Code quality
1 parent 2d7d311 commit 92249e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Flow.Launcher.Infrastructure/QuickSwitch/Models/FilesExplorer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ internal class FilesExplorer : IQuickSwitchExplorer
2525
private static FilesWindow _lastExplorerView = null;
2626
private static readonly object _lastExplorerViewLock = new();
2727

28-
public bool CheckExplorerWindow(HWND hWnd)
28+
public bool CheckExplorerWindow(HWND foreground)
2929
{
3030
var isExplorer = false;
3131
lock (_lastExplorerViewLock)
3232
{
3333
// Is it from Files?
34-
var processName = Path.GetFileName(GetProcessPathFromHwnd(hWnd));
34+
var processName = Path.GetFileName(GetProcessPathFromHwnd(foreground));
3535
if (processName == "Files.exe")
3636
{
3737
// Is it Files's file window?
3838
try
3939
{
4040
var automation = new UIA3Automation();
41-
var Files = automation.FromHandle(hWnd);
41+
var Files = automation.FromHandle(foreground);
4242
if (Files.Name == "Files" || Files.Name.Contains("- Files"))
4343
{
44-
_lastExplorerView = new FilesWindow(hWnd, automation, Files);
44+
_lastExplorerView = new FilesWindow(foreground, automation, Files);
4545
isExplorer = true;
4646
}
4747
}

0 commit comments

Comments
 (0)