File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Flow.Launcher.Infrastructure/QuickSwitch/Models
Flow.Launcher.Plugin/Interfaces Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ public class WindowsExplorer : IQuickSwitchExplorer
1414 {
1515 private static IWebBrowser2 _lastExplorerView = null ;
1616
17- public IQuickSwitchExplorerWindow CheckExplorerWindow ( IntPtr foreground )
17+ public IQuickSwitchExplorerWindow CheckExplorerWindow ( IntPtr hwnd )
1818 {
1919 IQuickSwitchExplorerWindow explorerWindow = null ;
2020
2121 // Is it from Explorer?
22- var processName = Win32Helper . GetProcessNameFromHwnd ( new ( foreground ) ) ;
22+ var processName = Win32Helper . GetProcessNameFromHwnd ( new ( hwnd ) ) ;
2323 if ( processName . ToLower ( ) == "explorer.exe" )
2424 {
2525 EnumerateShellWindows ( ( shellWindow ) =>
@@ -28,10 +28,10 @@ public IQuickSwitchExplorerWindow CheckExplorerWindow(IntPtr foreground)
2828 {
2929 if ( shellWindow is not IWebBrowser2 explorer ) return true ;
3030
31- if ( explorer . HWND != foreground ) return true ;
31+ if ( explorer . HWND != hwnd ) return true ;
3232
3333 _lastExplorerView = explorer ;
34- explorerWindow = new WindowsExplorerWindow ( foreground , explorer ) ;
34+ explorerWindow = new WindowsExplorerWindow ( hwnd , explorer ) ;
3535 return false ;
3636 }
3737 catch ( COMException )
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ public interface IQuickSwitchExplorer : IDisposable
1212 /// <summary>
1313 /// Check if the foreground window is a Windows Explorer instance.
1414 /// </summary>
15- /// <param name="foreground ">
15+ /// <param name="hwnd ">
1616 /// The handle of the foreground window to check.
1717 /// </param>
1818 /// <returns>
1919 /// The explorer window if the foreground window is a Windows Explorer instance. Null if it is not.
2020 /// </returns>
21- IQuickSwitchExplorerWindow ? CheckExplorerWindow ( IntPtr foreground ) ;
21+ IQuickSwitchExplorerWindow ? CheckExplorerWindow ( IntPtr hwnd ) ;
2222 }
2323
2424 public interface IQuickSwitchExplorerWindow : IDisposable
You can’t perform that action at this time.
0 commit comments