fix panic

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-05-19 22:47:19 +02:00
parent a1428eafdb
commit dea348152d

View file

@ -147,11 +147,13 @@ impl BeoUi {
// TODO: pass event to current app
}
}
println!(
"Current app {:?} - VIEW: {:?}",
self.current_app().unwrap().name(),
self.current_app().unwrap().get_current_view()
);
if let Some(app) = self.current_app() {
println!(
"Current app {:?} - VIEW: {:?}",
app.name(),
app.get_current_view()
);
}
}
pub fn draw<T: Renderer>(&self, canvas: &mut Canvas<T>, fonts: &Fonts) {