structural updates + power_management

This commit is contained in:
Jiří Maxmilián Stříbrný 2026-03-24 14:50:55 +01:00
parent 22670f6abd
commit c2c4881942
7 changed files with 125 additions and 51 deletions

View file

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