WIP
This commit is contained in:
parent
580f1a4125
commit
a5044ccbba
2 changed files with 56 additions and 39 deletions
|
@ -13,9 +13,9 @@ pub enum ContextMenuItem {
|
|||
}
|
||||
|
||||
impl ContextMenuItem {
|
||||
pub fn item(label: String, action: impl 'static + Action) -> Self {
|
||||
pub fn item(label: impl ToString, action: impl 'static + Action) -> Self {
|
||||
Self::Item {
|
||||
label,
|
||||
label: label.to_string(),
|
||||
action: Box::new(action),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue