h-gtk: Change the signature of utils::set_image_from_path to not require a Podcast.

It was only used to call the podcast.id() method. This allows EpisodeViewWidget
to be created whithout the need for a call to the database to get a Podcst
Object for each widget.
This commit is contained in:
Jordan Petridis
2018-04-19 07:15:12 +03:00
parent df417fa619
commit 5336981154
4 changed files with 24 additions and 29 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ impl ShowWidget {
#[inline]
/// Set the show cover.
fn set_cover(&self, pd: Arc<Podcast>) -> Result<(), Error> {
utils::set_image_from_path(&self.cover, Arc::new(pd.into()), 128)
utils::set_image_from_path(&self.cover, pd.id(), 128)
}
#[inline]