Skip to content

Commit

Permalink
🔨 Simplify focus test
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Jan 20, 2025
1 parent 2a3069e commit bea2d71
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/braindrop/app/screens/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,7 @@ def action_details_command(self) -> None:
if (
hidden := self.has_class("details-hidden")
and self.focused is not None
and (
self.focused is self.query_one(RaindropDetails)
or self.focused.parent is self.query_one(RaindropDetails)
)
and self.query_one(RaindropDetails) in (self.focused, self.focused.parent)
):
# Focus was on the details, or within, so let's ensure it heads
# back to the list of raindrops as that feels like the most
Expand Down

0 comments on commit bea2d71

Please sign in to comment.