kopia lustrzana https://github.com/ihabunek/toot
Deduplicate and sort links for the show links function
rodzic
30792a0cab
commit
6b432b2fd3
|
@ -402,6 +402,8 @@ class TUI(urwid.Frame):
|
|||
self.clear_screen()
|
||||
|
||||
if links:
|
||||
links = list(set(links)) # deduplicate links
|
||||
links = sorted(links, key = lambda link: link[0]) # sort alphabetically by URL
|
||||
sl_widget = StatusLinks(links)
|
||||
urwid.connect_signal(sl_widget, "clear-screen", _clear)
|
||||
self.open_overlay(
|
||||
|
|
Ładowanie…
Reference in New Issue