Updated patch

Corrected code here
This commit is contained in:
Daniel Schwarz 2022-11-21 22:00:04 -05:00 committed by Ivan Habunek
parent 5aa779ef06
commit 9abaebdc21
No known key found for this signature in database
GPG key ID: CDBD63C43A30BB95
2 changed files with 7 additions and 0 deletions

View file

@ -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()

View file

@ -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"))