1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-23 07:27:12 +01: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):
links = parse_content_links(status.data["content"])
self.open_overlay(
widget=StatusLinks(links),
title="Status links",
options={"height": len(links) + 2},
)
if links:
self.open_overlay(
widget=StatusLinks(links),
title="Status links",
options={"height": len(links) + 2},
)
def show_exception(self, exception):
self.open_overlay(