Make items_opt private
This commit is contained in:
parent
bcd5da57ab
commit
b9f959a298
4 changed files with 61 additions and 47 deletions
|
|
@ -58,8 +58,7 @@ pub fn context_menu<'a>(
|
|||
};
|
||||
|
||||
let selected = tab
|
||||
.items_opt
|
||||
.as_ref()
|
||||
.items_opt()
|
||||
.map_or(0, |items| items.iter().filter(|x| x.selected).count());
|
||||
|
||||
let mut children: Vec<Element<_>> = Vec::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue