Skip to content
Snippets Groups Projects
Commit 575b9358 authored by Dicson's avatar Dicson
Browse files

fix previous commit

parent 87e99db7
No related branches found
No related tags found
No related merge requests found
......@@ -366,6 +366,7 @@ class DesktopNotification:
hints['category'] = dbus.String(ntype)
# it seems notification-daemon doesn't like empty text
if self.text:
text = self.text
if len(self.text) > 200:
text = '%s\n...' % self.text[:200]
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment