Implement async loading of the Show covers.

This commit is contained in:
Jordan Petridis
2018-03-28 22:41:45 +03:00
parent daa8f15ce9
commit badcbc32c6
4 changed files with 40 additions and 21 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ impl ShowWidget {
/// Set the show cover.
fn set_cover(&self, pd: Arc<Podcast>) -> Result<(), Error> {
set_image_from_path(&self.cover, &pd.into(), 128)
set_image_from_path(&self.cover, Arc::new(pd.into()), 128)
}
/// Set the descripton text.