Skip to content

Commit

Permalink
Fix content ready error (#10)
Browse files Browse the repository at this point in the history
* Fix error when accessing .ready()

* Change binding names
  • Loading branch information
yakimka authored Sep 4, 2023
1 parent 20953c2 commit 432afbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion difflume/diffapp/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def content(self, content: Content) -> None:
self._content = content

def ready(self) -> bool:
return self.content is not None
return self._content is not None

def rewrite_inputs(self) -> None:
"""
Expand Down
4 changes: 2 additions & 2 deletions difflume/tui/screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ class DiffScreen(Screen):
CSS_PATH = os.path.join("css", "main.tcss")
BINDINGS = [
Binding("question_mark", "push_screen('help')", "Help", key_display="?"),
Binding("f1", "select_file('left')", "Open Left", show=True),
Binding("f3", "select_file('right')", "Open Right", show=True),
Binding("f", "toggle_full_screen", "Full Screen", show=True),
Binding(
"c",
"toggle_class('PanelContent', 'centered-top')",
"Center text",
show=True,
),
Binding("f1", "select_file('left')", "Select Left File", show=True),
Binding("f3", "select_file('right')", "Select Right File", show=True),
]

async def action_toggle_full_screen(self) -> None:
Expand Down

0 comments on commit 432afbd

Please sign in to comment.