Dave Tolls wrote:Add some logging for the create/destroy, around the add/remove of the listener.
Either the callback is fired twice for an event (unlikely) or there are two listeners.
Actually, when logging in the ClipChanged, could you include the class?
That (hopefully) would print the default toString.
ETA: Also, it's preferable to copy and paste text here, rather than include images.
It's a lot easier for us to work with text.
I added the logging as requested and this is what I got:
As you can see it works for the first element "oui c'est vrai" but not for the second element copied "are no longer" which is copied twice. What I actually noticed is that it actually copies things twice only when I copy from the browser, indeed the first element was copied from another application (Twitter).