mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57: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_instruments(clone!(@strong result => move |instruments| {
|
||||
let instruments = instruments.unwrap();
|
||||
|
||||
for (index, instrument) in instruments.iter().enumerate() {
|
||||
let label = gtk::Label::new(Some(&instrument.name));
|
||||
label.set_halign(gtk::Align::Start);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue