linux bubbles: add debug information for #1362
This commit is contained in:
parent
7d65812a29
commit
a0c443844f
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue