Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 25, 2024
1 parent a355437 commit 261fb2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified .coverage
Binary file not shown.
4 changes: 2 additions & 2 deletions src/posting/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ async def action_new_request(self) -> None:
"""Open the new request flow."""
await self.collection_tree.new_request_flow(None)

def watch_layout(self, layout: Literal["horizontal", "vertical"]) -> None:
"""Update the layout of the app to be horizontal or vertical."""
def watch_current_layout(self, layout: Literal["horizontal", "vertical"]) -> None:
"""Update the current layout of the app to be horizontal or vertical."""
classes = {"horizontal", "vertical"}
other_class = classes.difference({layout}).pop()
self.app_body.add_class(f"layout-{layout}")
Expand Down
4 changes: 2 additions & 2 deletions src/posting/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def commands(

if isinstance(screen, MainScreen):
# Only show the option to change to the layout which isn't the current one.
if screen.layout == "horizontal":
if screen.current_layout == "horizontal":
commands_to_show.append(
(
"layout: vertical",
Expand All @@ -33,7 +33,7 @@ def commands(
True,
),
)
elif screen.layout == "vertical":
elif screen.current_layout == "vertical":
commands_to_show.append(
(
"layout: horizontal",
Expand Down

0 comments on commit 261fb2f

Please sign in to comment.