mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-13 19:00:19 +01:00
personal-gui: Limit next meeting to 30 chars
This commit is contained in:
parent
80f8b1be71
commit
93402ae5f6
1 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,10 @@ for line in lines:
|
|||
output = "\n".join(new_lines).strip()
|
||||
|
||||
if "Today" in output:
|
||||
data["text"] = " " + output.split("\n")[1]
|
||||
next_meeting = output.split("\n")[1]
|
||||
if len(next_meeting) >= 30:
|
||||
next_meeting = next_meeting[0:27] + "..."
|
||||
data["text"] = " " + next_meeting
|
||||
else:
|
||||
data["text"] = ""
|
||||
data["tooltip"] = output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue