linux bubbles: add debug information for #1362

This commit is contained in:
Hylke Bons 2013-08-21 22:30:02 +02:00
parent 5073ddd4b7
commit 0f36b3c412

View file

@ -35,6 +35,16 @@ namespace SparkleShare {
return;
try {
// Debug information for https://github.com/hbons/SparkleShare/issues/1362
if (title.Length > 255) {
SparkleLogger.LogInfo ("Notification", "Long string detected, truncating 'title'");
title = title.Substring (0, 255) + "...";
} else if (subtext.Length > 255) {
SparkleLogger.LogInfo ("Notification", "Long string detected, truncating 'subtext'");
title = title.Substring (0, 255) + "...";
}
Notification notification = new Notification () {
Summary = title,
Body = subtext,