Improved of hanling of some Result types in hammond-data crate.

This commit is contained in:
Jordan Petridis
2017-10-21 04:58:15 +03:00
parent a6f03ff27c
commit 048d4800da
5 changed files with 67 additions and 46 deletions
+2
View File
@@ -23,6 +23,7 @@ pub fn refresh_db(db: Arc<Mutex<SqliteConnection>>, stack: gtk::Stack) {
});
// FIXME: atm freezing the ui till update is done.
// Make it instead emmit a signal on update completion.
// TODO: emit a signal in order to update the podcast widget.
handle.join();
podcasts_view::update_podcasts_view(db.clone(), stack.clone());
@@ -51,6 +52,7 @@ pub fn refresh_feed(db: Arc<Mutex<SqliteConnection>>, stack: gtk::Stack, source:
});
// FIXME: atm freezing the ui till update is done.
// Make it instead emmit a signal on update completion.
// TODO: emit a signal in order to update the podcast widget.
handle.join();
podcasts_view::update_podcasts_view(db.clone(), stack.clone());
+1
View File
@@ -80,6 +80,7 @@ fn epidose_widget(
error!("Error while trying to download: {}", ep_clone.uri());
error!("Error: {}", err);
};
// TODO: emit a signal in order to update the podcast widget.
});
});