kopia lustrzana https://github.com/ihabunek/toot
Display a message in footer upon [P]in action
And clear the message after 5s.pull/171/head
rodzic
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)
|
||||
|
|
Ładowanie…
Reference in New Issue