mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-12-15 12:24:57 +01:00
ready for testing
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Observatory.Framework;
|
||||
using Observatory.UI;
|
||||
using System;
|
||||
|
||||
namespace Observatory.NativeNotification
|
||||
{
|
||||
@@ -21,6 +22,11 @@ namespace Observatory.NativeNotification
|
||||
|
||||
notification.FormClosed += NotifyWindow_Closed;
|
||||
|
||||
foreach(var notificationForm in notifications)
|
||||
{
|
||||
notificationForm.Value.AdjustOffset(true);
|
||||
}
|
||||
|
||||
notifications.Add(notificationGuid, notification);
|
||||
notification.Show();
|
||||
});
|
||||
@@ -34,6 +40,11 @@ namespace Observatory.NativeNotification
|
||||
{
|
||||
var currentNotification = (NotificationForm)sender;
|
||||
|
||||
foreach (var notification in notifications.Where(n => n.Value.CreationTime < currentNotification.CreationTime))
|
||||
{
|
||||
notification.Value.AdjustOffset(false);
|
||||
}
|
||||
|
||||
if (notifications.ContainsKey(currentNotification.Guid))
|
||||
{
|
||||
notifications.Remove(currentNotification.Guid);
|
||||
|
||||
Reference in New Issue
Block a user