mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Revert "fix notification mark as read not updating"
This reverts commit c4f855f3a5
.
This commit is contained in:
commit
bd41ad18fe
2 changed files with 0 additions and 8 deletions
|
@ -68,12 +68,6 @@ namespace ShiftOS.WinForms
|
|||
|
||||
};
|
||||
|
||||
NotificationDaemon.NotificationRead += (note) =>
|
||||
{
|
||||
btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")";
|
||||
|
||||
};
|
||||
|
||||
this.LocationChanged += (o, a) =>
|
||||
{
|
||||
if (this.Left != 0)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue