Activating plugin module independently of plugin window

Hiya

Quick question - is there a way or organise my plugin so that it’s always active and loaded, regardless of it the plugin window is visible? Right now the module is loaded and run when the window for it shows - but it also has import functionality that fails if the module isn’t loaded (eg. if the window is closed). I also need it to persist after the window is closed and only selectively close down certain functionality.

Have you adapted your plugin from some existing code?

By default a plugin module will be loaded at startup and unloaded at shutdown. If you have some plugin window which the module’s lifetime is attached to, that behaviour must have been setup manually in your plugin’s own code.

The plugin was set up using the earliest version of the plugin wizard, so that’s probably why. Thanks, I’ll make a new one and swap some code around. :slight_smile: