Classic mode plugin calls running twice

General support for problems installing or using Deluge
Post Reply
laharah
Member
Member
Posts: 26
Joined: Wed Jan 08, 2014 2:41 am

Classic mode plugin calls running twice

Post 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.
laharah
Member
Member
Posts: 26
Joined: Wed Jan 08, 2014 2:41 am

Re: Classic mode plugin calls running twice

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