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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user