From cad96c5ae5a81ef06a8e644fee9bd899404d5b89 Mon Sep 17 00:00:00 2001 From: Adam Cosner Date: Fri, 10 Jan 2025 22:44:42 -0800 Subject: [PATCH] Added item contexts and changed the context menu functions to take builder functions --- src/widget/table/widget/standard.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/widget/table/widget/standard.rs b/src/widget/table/widget/standard.rs index 72dd7c47..35762eea 100644 --- a/src/widget/table/widget/standard.rs +++ b/src/widget/table/widget/standard.rs @@ -265,7 +265,7 @@ where .. } = theme::active().cosmic().spacing; - let mut result = Self { + Self { model, element_padding: Padding::from(0), @@ -291,8 +291,6 @@ where on_category_mb_right: None, category_context_builder: Box::new(|_| None), } - - result } pub fn on_item_left_click(mut self, on_click: F) -> Self