mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-13 22:02:31 +00:00
Dropdowns: craft_ui::ComboBox, as main's clippy configuration asks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
840d75b46f
commit
d865a7cca1
1 file changed
+1
-1
@@ -3441,7 +3441,7 @@ fn format_style_options(lang: &str, ui: &mut egui::Ui, fd: &mut Dialog, styles:
|
||||
crate::rtl::label(ui, crate::i18n::tr(lang, label));
|
||||
let cur = fd.fields.get(key).and_then(Value::as_str).map(str::to_string);
|
||||
let shown = cur.as_deref().map_or_else(|| any.to_string(), |n| crate::i18n::style_name(lang, n).to_string());
|
||||
egui::ComboBox::from_id_salt(("format_style", key)).selected_text(crate::rtl::widget(ui, shown)).width(240.0).show_ui(ui, |ui| {
|
||||
craft_ui::ComboBox::from_id_salt(("format_style", key)).selected_text(crate::rtl::widget(ui, shown)).width(240.0).show_ui(ui, |ui| {
|
||||
if ui.selectable_label(cur.is_none(), crate::rtl::widget(ui, any)).clicked() {
|
||||
fd.fields.remove(key);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user