Skip to content

Commit

Permalink
Scroll to last segment even with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Dec 22, 2023
1 parent 3c80bd9 commit a1660ff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hyperplane/path_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,17 @@ def append(
self.separators[path_segment] = sep
self.segments.append(path_segment)

if self.tags:
return

segment = self.segments[-1]
segment.remove_css_class("inactive-segment")

GLib.timeout_add(
segment.get_transition_duration(), self.viewport.scroll_to, segment
)

if self.tags:
return

segment.remove_css_class("inactive-segment")

try:
self.segments[-2].add_css_class("inactive-segment")
except IndexError:
Expand Down

0 comments on commit a1660ff

Please sign in to comment.