From 90d71be17ec6d4d411fcb30e3c2de79c4825c69d Mon Sep 17 00:00:00 2001 From: BTMuli Date: Tue, 2 Dec 2025 22:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8Dmac=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 28bfa3fd..b0079f05 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -75,7 +75,7 @@ pub async fn get_dir_size(path: String) -> u64 { pub fn is_in_admin() -> bool { #[cfg(not(target_os = "windows"))] { - return Err("This function is only supported on Windows.".into()); + return false; } #[cfg(target_os = "windows")] {