mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-02 02:38:30 -06:00
style: wrap the two changed lines as rustfmt asks
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -148,7 +148,8 @@ impl NativeMenu {
|
||||
if cmd == menus::RECENT_CLEAR {
|
||||
continue;
|
||||
}
|
||||
let en = (typing && menus::edits_text(cmd)) || cadcraft_engine::find_command(cmd).is_none_or(|c| cadcraft_ui_egui::clipboard::offered(&app.session, c));
|
||||
let en = (typing && menus::edits_text(cmd))
|
||||
|| cadcraft_engine::find_command(cmd).is_none_or(|c| cadcraft_ui_egui::clipboard::offered(&app.session, c));
|
||||
item.set_enabled(en);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,12 @@ pub fn command_line_entries(app: &CadApp) -> Vec<Vec<Entry>> {
|
||||
.recent_commands(RECENT)
|
||||
.iter()
|
||||
.filter_map(|id| find_command(id))
|
||||
.map(|c| Entry::Item { label: c.id.to_ascii_uppercase(), id: c.id.to_string(), shortcut: None, enabled: crate::clipboard::offered(&app.session, c) })
|
||||
.map(|c| Entry::Item {
|
||||
label: c.id.to_ascii_uppercase(),
|
||||
id: c.id.to_string(),
|
||||
shortcut: None,
|
||||
enabled: crate::clipboard::offered(&app.session, c),
|
||||
})
|
||||
.collect();
|
||||
if !recent.is_empty() {
|
||||
groups.push(vec![Entry::Sub { label: "Recent Commands".into(), children: recent }]);
|
||||
|
||||
Reference in New Issue
Block a user