Closed Ryoumiya closed 1 year ago
Looks like the error comes from Dictionary in FreeDesktopNotificationManager.cs
private void OnNotificationClosed((uint id, uint reason) @event)
{
var notification = _activeNotifications[@event.id]; //<-- Here !
_activeNotifications.Remove(@event.id);
//TODO: Not sure why but it calls this event twice sometimes
//In this case the notification has already been removed from the dict.
if (notification == null)
{
return;
}
var dismissReason = GetReason(@event.reason);
NotificationDismissed?.Invoke(this,
new NotificationDismissedEventArgs(notification, dismissReason));
}
i think i could fix this, let me test a few things first...
Same. I also get a crash when I click on the notification itself (not a button) or the close button. Maybe because it tries to get the value from a key without checking if the key exists or the dict get modified by another thread?
Error when notification button is pressed on FreeDesktop
OS: OpenSuse Leap 15.5 .net: 7.0