fix: multiple fixes + cleanup and formatting

This commit is contained in:
FUFSoB committed 2026-09-17 22:51:31 +05:00
1 parent 321e9ca468
commit c62000821a
59 files changed
+1357 -920

No files matched your search

+2 -1
View File
@@ -307,7 +307,8 @@ def inbound_rows(_):
# A listener behind the onion service has a second row, for its .onion link.
return [
{
"key": "/".join(ctl._s(x.get(k) or "") for k in ("tag", "user", "variant")),
# The TUI titles its menu with the key: no trailing "/" for the plain link.
"key": "/".join(ctl._s(x.get(k)) for k in ("tag", "user", "variant") if x.get(k)),
**{k: ctl._s(x.get(k) or "") for k in ("tag", "user", "type", "port", "variant")},
**({"type": f"{ctl._s(x.get('type') or '')} (onion)"} if x.get("variant") == "onion" else {}),
}