Skip to content

Commit

Permalink
fix: 修复在 win10 桌面无法预览问题
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoJikun committed Jan 8, 2025
1 parent 65f4ebe commit 0254991
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src-tauri/src/preview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ impl Selected {
} else {
Err(WError::from_win32())
}


}
fn get_focused_type() -> Option<FwWindowType> {
let mut type_str: Option<FwWindowType> = None;
Expand Down Expand Up @@ -182,14 +180,6 @@ impl Selected {

let shell_browser = shell_browser.unwrap();

let phwnd = shell_browser.GetWindow().unwrap();
let top = WindowsAndMessaging::GetAncestor(phwnd, WindowsAndMessaging::GA_ROOT);

if !hwnd_gfw.eq(&top) {
log::info!("fwhwnd: {:?}, top: {:?} 不相等", hwnd_gfw, top);
return Ok(target_path);
}

let shell_view = shell_browser.QueryActiveShellView()?;

target_path = Self::get_selected_file_path_from_shellview(shell_view);
Expand Down

0 comments on commit 0254991

Please sign in to comment.