Added item contexts and changed the context menu functions to take builder functions
This commit is contained in:
parent
7c2f2de4c4
commit
cad96c5ae5
1 changed files with 1 additions and 3 deletions
|
|
@ -265,7 +265,7 @@ where
|
||||||
..
|
..
|
||||||
} = theme::active().cosmic().spacing;
|
} = theme::active().cosmic().spacing;
|
||||||
|
|
||||||
let mut result = Self {
|
Self {
|
||||||
model,
|
model,
|
||||||
|
|
||||||
element_padding: Padding::from(0),
|
element_padding: Padding::from(0),
|
||||||
|
|
@ -291,8 +291,6 @@ where
|
||||||
on_category_mb_right: None,
|
on_category_mb_right: None,
|
||||||
category_context_builder: Box::new(|_| None),
|
category_context_builder: Box::new(|_| None),
|
||||||
}
|
}
|
||||||
|
|
||||||
result
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn on_item_left_click<F>(mut self, on_click: F) -> Self
|
pub fn on_item_left_click<F>(mut self, on_click: F) -> Self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue