File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Flow.Launcher.Infrastructure/QuickSwitch/Models Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments