mirror of
https://github.com/ihabunek/toot
synced 2024-12-23 07:27:12 +01:00
Display a message in footer upon [P]in action
And clear the message after 5s.
This commit is contained in:
parent
4d1fa837a1
commit
3efa330d69
@ -221,8 +221,11 @@ class TUI(urwid.Frame):
|
||||
timelines = self.config.setdefault("timelines", {})
|
||||
if hashtag in timelines:
|
||||
del timelines[hashtag]
|
||||
self.footer.set_message("#{} unpinned".format(hashtag))
|
||||
else:
|
||||
timelines[hashtag] = {"local": local}
|
||||
self.footer.set_message("#{} pinned".format(hashtag))
|
||||
self.loop.set_alarm_in(5, lambda *args: self.footer.clear_message())
|
||||
config.save_config(self.config)
|
||||
|
||||
timeline = Timeline(name, statuses)
|
||||
|
Loading…
Reference in New Issue
Block a user