Reset shownotes to top when changing episodes.

This prevents the title from being partially clipped when moving between
episodes after scrolling the shownotes for one of them.
This commit is contained in:
auouymous 2021-07-16 05:16:08 -06:00
parent 328732b6cc
commit e9353588f3
1 changed files with 4 additions and 0 deletions

View File

@ -196,6 +196,8 @@ class gPodderShownotesText(gPodderShownotes):
return self.text_view
def update(self, episode):
self.scrolled_window.get_vadjustment().set_value(0)
heading = episode.title
subheading = _('from %s') % (episode.channel.title)
details = self.details_fmt % {
@ -287,6 +289,8 @@ class gPodderShownotesHTML(gPodderShownotes):
return self.html_view
def update(self, episode):
self.scrolled_window.get_vadjustment().set_value(0)
self.define_colors()
if episode.has_website_link():