Make items_opt private

This commit is contained in:
Jeremy Soller 2024-02-29 13:42:13 -07:00
parent bcd5da57ab
commit b9f959a298
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
4 changed files with 61 additions and 47 deletions

View file

@ -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();