mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-05 22:59:52 +00:00
Follows up #2725, whose review found the thumbnail slide menu's Hide/Show row borrowing the engine command's checked state. `slide.hide`'s checked state is computed in `crates/ui-egui/src/ribbon/states.rs` from the current slide alone, while the bare command applies to every slide in `selection.slides` (crates/engine/src/cmd/slide.rs:479-498), so a mixed selection led by a hidden slide showed a tick on a row labelled "Hide Slide" and the menu announced the row as checked. The row is now a plain `MenuItem`: it runs `slide.hide` with no params itself and closes the menu with `cx.request_close()`, and keeps the all-hidden label computed over the same target list the engine uses. The change stays inside `slide_menu`; no engine or ribbon state changes. Tests: `panels::thumbs::tests::the_slide_menu_hides_and_shows_every_selected_slide` (a mixed selection reads Hide Slide and one click flips the whole selection in a single undo step, then a second click shows it again) and `panels::thumbs::tests::the_slide_menu_hide_row_carries_no_single_slide_toggle` (the row reports no toggled state and the click does what the label said). Part of #2553