diff options
| author | pml68 <contact@pml68.dev> | 2025-03-23 16:23:17 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-03-23 16:23:17 +0100 |
| commit | 6a5a2b627cb8b588fe78463f218fd860fb78cd35 (patch) | |
| tree | fb345030d03e99d0486e0abd77674c900b3dd58b /src/panes | |
| parent | ci: add caching, use mold for linking (diff) | |
| download | iced-builder-6a5a2b627cb8b588fe78463f218fd860fb78cd35.tar.gz | |
fix(iced_drop): support reactive rendering
Diffstat (limited to 'src/panes')
| -rw-r--r-- | src/panes/element_list.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/panes/element_list.rs b/src/panes/element_list.rs index a644083..10eea66 100644 --- a/src/panes/element_list.rs +++ b/src/panes/element_list.rs @@ -12,12 +12,11 @@ fn items_list_view(items: &[ElementName]) -> Element<'_, Message> { .width(Length::Fill); for item in items { - column = - column.push(droppable(text(item.clone().to_string())).on_drop( - move |point, rect| { - Message::DropNewElement(item.clone(), point, rect) - }, - )); + column = column.push( + droppable(text(item.clone().to_string())).on_drop(|point, rect| { + Message::DropNewElement(item.clone(), point, rect) + }), + ); } container(column) |
