From db41690ad00ce2c8a35ef05b651c1a487bdeb315 Mon Sep 17 00:00:00 2001 From: Petr Gadorek Date: Tue, 26 Nov 2024 12:15:05 +0100 Subject: [PATCH] gui installer now produce IDE config file on default location --- src-tauri/src/lib.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 673343c..79f75d5 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -988,6 +988,23 @@ async fn start_installation(app_handle: AppHandle) -> Result<(), String> { "warning".to_string(), ); } + let ide_json_path = settings.esp_idf_json_path.clone().unwrap_or_default(); + match settings.save_esp_ide_json(&ide_json_path) { + Ok(_) => { + send_message( + &app_handle, + format!("IDE JSON file saved to: {}", ide_json_path), + "info".to_string(), + ); + } + Err(e) => { + send_message( + &app_handle, + format!("Failed to save IDE JSON file: {}", e), + "error".to_string(), + ); + } + } Ok(()) }