summaryrefslogtreecommitdiff
path: root/src/panes
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-03-23 16:23:17 +0100
committerpml68 <contact@pml68.dev>2025-03-23 16:23:17 +0100
commit6a5a2b627cb8b588fe78463f218fd860fb78cd35 (patch)
treefb345030d03e99d0486e0abd77674c900b3dd58b /src/panes
parentci: add caching, use mold for linking (diff)
downloadiced-builder-6a5a2b627cb8b588fe78463f218fd860fb78cd35.tar.gz
fix(iced_drop): support reactive rendering
Diffstat (limited to '')
-rw-r--r--src/panes/element_list.rs11
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)