Coder Social home page Coder Social logo

Comments (2)

Ryoumiya avatar Ryoumiya commented on September 24, 2024

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...

from desktopnotifications.

onionware-github avatar onionware-github commented on September 24, 2024

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?

from desktopnotifications.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.