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