structural updates + power_management
This commit is contained in:
parent
22670f6abd
commit
c2c4881942
7 changed files with 125 additions and 51 deletions
|
|
@ -38,13 +38,12 @@ impl App {
|
|||
if let Some(elem) = self
|
||||
.widgets
|
||||
.iter()
|
||||
.find(|widget| widget.has_window(id))
|
||||
.map(|widget| widget.view(id))
|
||||
.find_map(|widget| widget.render_window(id))
|
||||
{
|
||||
return elem;
|
||||
}
|
||||
|
||||
iced::widget::Row::with_children(self.widgets.iter().map(|widget| widget.view(id)))
|
||||
iced::widget::Row::with_children(self.widgets.iter().filter_map(|widget| widget.view()))
|
||||
.padding(iced::Padding::from([0, 5]))
|
||||
.height(iced::Length::Fill)
|
||||
.width(iced::Length::Fill)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue