From 35dfd1fe90ae0b48882fd1c9ec0aebe91e8637b1 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 21 Nov 2026 13:06:53 -0500 Subject: [PATCH] Pass selection to grid tile actions --- crates/ui-widgets/src/tile_grid/grid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-widgets/src/tile_grid/grid.rs b/crates/ui-widgets/src/tile_grid/grid.rs index 6b39cba11..5a8e60c7e 100644 --- a/crates/ui-widgets/src/tile_grid/grid.rs +++ b/crates/ui-widgets/src/tile_grid/grid.rs @@ -996,7 +996,7 @@ impl Collection for TileGrid<'_, K /// Every tile gets the grid's caption place, detail line and actions' place, the card look, and its row's rename /// state. Under `checks` a tile's check is its own selection, so the app keeps no second copy of it. fn dress<'r>(&self, tile: Self::Item<'r>, row: &RowState) -> Self::Item<'r> { - let tile = tile.caption(self.caption).detail_line(self.detail_line).action_place(self.action_place).renaming(row.renaming); + let tile = tile.caption(self.caption).detail_line(self.detail_line).action_place(self.action_place).renaming(row.renaming).selected(row.selected); let tile = if self.checks { tile.check(if row.selected { ToggleState::On } else { ToggleState::Off }) } else { tile }; if self.card { tile.card() } else { tile } }