Skip to content

Commit

Permalink
fix - Fixed notifications crashing on long titles
Browse files Browse the repository at this point in the history
---

We've fixed notifications crashing on long titles.

---

Type: fix
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 15, 2024
1 parent 3f9c29c commit 697e617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/Nitrocid/Misc/Notifications/NotificationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ private static void NotifListen()
string Title, Desc;
DebugWriter.WriteDebug(DebugLevel.I, "Title: {0}", NewNotification.Title);
DebugWriter.WriteDebug(DebugLevel.I, "Desc: {0}", NewNotification.Desc);
Title = useSimplified ? "*" : NewNotification.Title.Truncate(36);
Desc = useSimplified ? "" : NewNotification.Desc.Truncate(36);
Title = useSimplified ? "*" : NewNotification.Title.Truncate(35);
Desc = useSimplified ? "" : NewNotification.Desc.Truncate(35);
DebugWriter.WriteDebug(DebugLevel.I, "Truncated title: {0}", Title);
DebugWriter.WriteDebug(DebugLevel.I, "Truncated desc: {0}", Desc);
DebugWriter.WriteDebug(DebugLevel.I, "Truncated title length: {0}", Title.Length);
Expand Down

0 comments on commit 697e617

Please sign in to comment.