Use anyhow for backend errors

This commit is contained in:
Elias Projahn 2020-10-11 19:53:36 +02:00
parent b2ab93cefa
commit 95f939cb07
8 changed files with 336 additions and 340 deletions

View file

@ -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);