From 9abaebdc21eb3121e5e14a55e7258bd09e09d44e Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Mon, 21 Nov 2022 22:00:04 -0500 Subject: [PATCH] Updated patch Corrected code here --- toot/tui/app.py | 6 ++++++ toot/tui/overlays.py | 1 + 2 files changed, 7 insertions(+) diff --git a/toot/tui/app.py b/toot/tui/app.py index d518e0a..f0fc425 100644 --- a/toot/tui/app.py +++ b/toot/tui/app.py @@ -524,6 +524,12 @@ class TUI(urwid.Frame): if not self.overlay: self.show_help() + elif key in (','): + if not self.overlay: + self.timeline_generator = api.home_timeline_generator( + self.app, self.user, limit=40) + self.async_load_timeline(is_initial=True, timeline_name=self.timeline.name) + elif key == 'esc': if self.overlay: self.close_overlay() diff --git a/toot/tui/overlays.py b/toot/tui/overlays.py index d4ef1de..d7301d3 100644 --- a/toot/tui/overlays.py +++ b/toot/tui/overlays.py @@ -146,6 +146,7 @@ class Help(urwid.Padding): yield urwid.Text(h(" [Q] - quit toot")) yield urwid.Text(h(" [G] - go to - switch timelines")) yield urwid.Text(h(" [P] - save/unsave (pin) current timeline")) + yield urwid.Text(h(" [,] - refresh current timeline")) yield urwid.Text(h(" [H] - show this help")) yield urwid.Divider() yield urwid.Text(("bold", "Status keys"))