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 95775f7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,24 @@ 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();
let _ = ensure_path(&ide_json_path);
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 95775f7

Please sign in to comment.