fix: remove panics and unblock flows
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-25 03:20:40 +07:00
parent 0fd8ea12fb
commit 3f64b36ff4
52 changed files with 753 additions and 567 deletions
+18
View File
@@ -272,6 +272,24 @@ where
}
}
/// Replaces the value without reporting it through `on_change`.
pub fn set_selected_silent(
&mut self,
value: Option<T>,
window: &mut Window,
cx: &mut Context<Self>,
) {
if self.selected == value {
return;
}
self.selected = value;
let label = self.selected_label().unwrap_or_default();
self.query
.update(cx, |query, cx| query.set_value_silent(label, window, cx));
self.refilter("");
cx.notify();
}
/// Replaces the choice list and re-runs the current filter.
pub fn set_options(&mut self, options: Vec<ComboboxOption<T>>, cx: &mut Context<Self>) {
self.options = options;