Skip to content

Commit

Permalink
gui installer now produce IDE config file on default location
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Gadorek committed Nov 26, 2024
1 parent 2e408f2 commit db41690
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit db41690

Please sign in to comment.