[work]: idk
Some checks failed
/ clippy (push) Failing after 6m19s
/ test (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2026-04-30 13:41:08 -05:00
parent 34dd3e72fb
commit c1eae15026

View file

@ -2222,9 +2222,16 @@ where
fn add_library() -> Task<Message> {
cosmic::Task::future(library::add_db()).then(|res| {
Task::perform(Library::new(Arc::new(res.expect("probs"))), |x| {
cosmic::Action::App(Message::AddLibrary(x))
})
Task::perform(
Library::new(Arc::new(match res {
Ok(db) => db,
Err(e) => {
error!("{e}");
panic!("{e}")
}
})),
|x| cosmic::Action::App(Message::AddLibrary(x)),
)
})
}