Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions frogmouth/widgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ def _post_load(self, location: Path | URL, remember: bool = True) -> None:
location: The location that has been loaded.
remember: Should we remember the location in the history?
"""
# We've loaded something fresh, ensure we're at the top.
self.scroll_home(animate=False)
if self.location != location:
# We've loaded something fresh, ensure we're at the top.
self.scroll_home(animate=False)
# If we've made it in here we are viewing an actual location.
self.viewing_location = True
# Remember the location in the history if we're supposed to.
Expand Down