Page 1 of 1

Classic mode plugin calls running twice

Posted: Sat Aug 22, 2015 10:01 pm
by laharah
I'm writing a plugin and I've come across a weird issue. When I run deluge in classic mode, all UI signals to my plugin are emitted twice, making two consecutive calls to my gtkui callbacks. I've tried it both on PC and OSX. In server/client mode the signals are only emitted once.

Does anyone know why this is happening, or how to prevent it?

I can produce a simple proof of concept plugin if anyone wants to reproduce the bug.

Re: Classic mode plugin calls running twice

Posted: Sat Aug 22, 2015 10:40 pm
by laharah
I found a fix for the problem, but I'm still not sure of the actual cause. By making sure signals are connected on enable, rather than on_show_prefs, the signal duplication is eliminated. Not sure why this only happens in classic mode.