aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs6
-rw-r--r--ShiftOS_TheReturn/NotificationDaemon.cs2
2 files changed, 0 insertions, 8 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs
index fdb249a..957c793 100644
--- a/ShiftOS.WinForms/WinformsDesktop.cs
+++ b/ShiftOS.WinForms/WinformsDesktop.cs
@@ -68,12 +68,6 @@ namespace ShiftOS.WinForms
};
- NotificationDaemon.NotificationRead += (note) =>
- {
- btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")";
-
- };
-
this.LocationChanged += (o, a) =>
{
if (this.Left != 0)
diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs
index 3c710fd..3ea8a54 100644
--- a/ShiftOS_TheReturn/NotificationDaemon.cs
+++ b/ShiftOS_TheReturn/NotificationDaemon.cs
@@ -38,14 +38,12 @@ namespace ShiftOS.Engine
public static void MarkRead(int note)
{
- var lst = new List<Notification>(GetAllFromFile());
var notes = GetAllFromFile();
if (note >= notes.Length || note < 0)
throw new ArgumentOutOfRangeException("note", new Exception("You cannot mark a notification that does not exist as read."));
notes[note].Read = true;
WriteNotes(notes);
- NotificationMade?.Invoke(lst[lst.Count - 1]);
}
public static int GetUnreadCount()