From 02549915beea5773fa781438f44536e0325d67d2 Mon Sep 17 00:00:00 2001 From: GuoJiKun Date: Wed, 8 Jan 2025 09:39:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=20win10=20?= =?UTF-8?q?=E6=A1=8C=E9=9D=A2=E6=97=A0=E6=B3=95=E9=A2=84=E8=A7=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/preview.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src-tauri/src/preview.rs b/src-tauri/src/preview.rs index 06a3d33..40d3395 100644 --- a/src-tauri/src/preview.rs +++ b/src-tauri/src/preview.rs @@ -69,8 +69,6 @@ impl Selected { } else { Err(WError::from_win32()) } - - } fn get_focused_type() -> Option { let mut type_str: Option = None; @@ -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);