mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-27 04:07:25 +01:00
Use anyhow for backend errors
This commit is contained in:
parent
b2ab93cefa
commit
95f939cb07
8 changed files with 336 additions and 340 deletions
|
|
@ -44,6 +44,8 @@ where
|
|||
result
|
||||
.backend
|
||||
.get_persons(clone!(@strong result => move |persons| {
|
||||
let persons = persons.unwrap();
|
||||
|
||||
for (index, person) in persons.iter().enumerate() {
|
||||
let label = gtk::Label::new(Some(&person.name_lf()));
|
||||
label.set_halign(gtk::Align::Start);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue