Panics · P01 Primitives: init returns an error, a missing app icon logs and shows a broken picture

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 15:25:09 -04:00
1 parent 52d3d790b1
commit e5166e9e26
20 files changed
+159 -87

No files matched your search

+4 -1
View File
@@ -106,7 +106,10 @@ pub fn start() {
if let Some(choice) = EARLY.take() {
start.choice = choice;
}
let window = launch(start, cx);
let window = match launch(start, cx) {
Ok(window) => window,
Err(error) => return log::error!("gallery: {error:#}"),
};
HOST.with(|host| *host.borrow_mut() = Some((cx.to_async(), window)));
});
}