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:
parent
28e1281187
commit
8b9ca7e243
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user