From 09e2cf1f23b65300ebb4d4c5b12e146e6b37468a Mon Sep 17 00:00:00 2001 From: Petr Gadorek Date: Tue, 12 Nov 2024 13:26:00 +0100 Subject: [PATCH] tools install process now uses the proper library defaults --- src-tauri/src/lib.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index a8bc70e..a0faac5 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -589,7 +589,7 @@ async fn download_idf( version, settings.idf_mirror.as_deref(), tx, - settings.recurse_submodules.unwrap_or(false), + settings.recurse_submodules.unwrap_or_default(), ) { Ok(_) => { send_message( @@ -740,10 +740,7 @@ async fn setup_tools( let tools_to_download = idf_im_lib::idf_tools::get_list_of_tools_to_download( tools.clone(), - settings - .target - .clone() - .unwrap_or_else(|| vec!["all".to_string()]), + settings.target.clone().unwrap_or_default(), settings.mirror.as_deref(), );