Stopping a plugin "OnExit" from plugin xml within MP (1 Viewer)

bushbrother

Portal Pro
February 14, 2008
192
15
UK
Home Country
United Kingdom United Kingdom
Hi all,

I am developing a plugin for "Transmission" and so far so good, I have an ALPHA version out, but it is early days: https://forum.team-mediaportal.com/...mission-a-transmission-torrent-plugin.103772/

I am a complete newbie to C# so it has taken a while to get to this stage, now I am stuck trying to find a solution I hope one of you clever folks can help with! :)

When the plugin is loaded I am using "onPageLoad()" to initialise a refresh timer for a method, so that the list is refreshed from the server. My issue is how to stop this timer when I exit the plugin menu in Mediaportal. At the moment every single time I go back to the plugin menu within MP it starts a new timer and so my methods are getting called many times and after a while it gets silly!

So my question is how can I terminate my plugin or set the timer to false? There does not seem to be a "onPageExit()" or similar function ...

Any ideas?

THANKS!
 

Users who are viewing this thread

Top Bottom