Skip to content

Commit

Permalink
Fix thumbnail errors (resolves #13)
Browse files Browse the repository at this point in the history
  • Loading branch information
xypwn committed Jun 27, 2024
1 parent 03e2a6b commit d4124b3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions internal/gui/episode.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,13 @@ func NewEpisode(
},
func(img *canvas.Image, err error) {
res.thumbnailProgress.Hide()
res.placeholderImage.Hide()

if err != nil {
errImg := canvas.NewImageFromResource(
theme.NewErrorThemedResource(
theme.ErrorIcon()))
errImg.FillMode = canvas.ImageFillContain
res.thumbnailImageCnt.Add(errImg)
onError(err)
return
}

res.placeholderImage.Hide()

res.mtx.Lock()
defer res.mtx.Unlock()

Expand Down

0 comments on commit d4124b3

Please sign in to comment.