From 5b8eab64698ed5d35d99cfbdddc52028c52acde2 Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 26 Mar 2025 13:10:25 +0700 Subject: [PATCH] chore: clean up logs opening --- src-tauri/src/handlers/cmd.rs | 2 +- .../BottomPanel/SystemMonitor/index.tsx | 2 +- web/containers/ModalTroubleShoot/AppLogs.tsx | 2 +- .../ModalTroubleShoot/CortexLogs.tsx | 2 +- web/containers/ServerLogs/index.tsx | 2 +- web/hooks/usePath.ts | 35 ++----------------- web/screens/Settings/Privacy/index.tsx | 2 +- 7 files changed, 8 insertions(+), 39 deletions(-) diff --git a/src-tauri/src/handlers/cmd.rs b/src-tauri/src/handlers/cmd.rs index 9a96f1082..c8bd7aaf0 100644 --- a/src-tauri/src/handlers/cmd.rs +++ b/src-tauri/src/handlers/cmd.rs @@ -177,7 +177,7 @@ pub fn open_app_directory(app: AppHandle) { } #[tauri::command] -pub fn open_file_explorer(app: AppHandle, path: String) { +pub fn open_file_explorer(path: String) { let path = PathBuf::from(path); if cfg!(target_os = "windows") { std::process::Command::new("explorer") diff --git a/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx b/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx index d9a0b289a..05ec643fe 100644 --- a/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx +++ b/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx @@ -91,7 +91,7 @@ const SystemMonitor = () => {
onRevealInFinder('Logs')} + onClick={() => onRevealInFinder('logs')} > App Log
diff --git a/web/containers/ModalTroubleShoot/AppLogs.tsx b/web/containers/ModalTroubleShoot/AppLogs.tsx index 7b0a31a5d..0dedb540f 100644 --- a/web/containers/ModalTroubleShoot/AppLogs.tsx +++ b/web/containers/ModalTroubleShoot/AppLogs.tsx @@ -41,7 +41,7 @@ const AppLogs = () => {