diff --git a/ui/src/candidates.rs b/ui/src/candidates.rs index 97f6fef..daf9d22 100644 --- a/ui/src/candidates.rs +++ b/ui/src/candidates.rs @@ -144,8 +144,8 @@ impl SdkmanApp { app_name: _, app_heading, logo, - candidates, - selected_candidate, + candidates: _, + selected_candidate: _, candidate_search_dialog, candidate_search_term: _, } = self; @@ -188,30 +188,6 @@ impl SdkmanApp { { frame.quit(); } - // Refresh button - if ui - .add(Button::new("🔄").text_style(TextStyle::Body)) - .on_hover_text("Refresh") - .clicked() - { - match fetch_remote_candidates() { - Ok(models) => { - let cands: Vec = models - .iter() - .map(|model| Candidate::from_model(model, None)) - .collect(); - *candidates = cands; - *selected_candidate = None; - } - Err(e) => { - *selected_candidate = None; - tracing::error!( - "Refreshing the list of candidates failed with:\n{}", - e - ) - } - } - } // Search button if ui .add(Button::new("🔎").text_style(TextStyle::Body))