0
0
mirror of https://github.com/ihabunek/toot.git synced 2025-06-30 22:18:36 -04:00

Don't show links window if no links are found

This commit is contained in:
Ivan Habunek 2020-04-15 14:12:30 +02:00
parent 28e1281187
commit 8b9ca7e243
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -308,11 +308,12 @@ class TUI(urwid.Frame):
def show_links(self, status): def show_links(self, status):
links = parse_content_links(status.data["content"]) links = parse_content_links(status.data["content"])
self.open_overlay( if links:
widget=StatusLinks(links), self.open_overlay(
title="Status links", widget=StatusLinks(links),
options={"height": len(links) + 2}, title="Status links",
) options={"height": len(links) + 2},
)
def show_exception(self, exception): def show_exception(self, exception):
self.open_overlay( self.open_overlay(