Still fighting with plugins.

This commit is contained in:
Storm Dragon 2025-04-03 22:30:51 -04:00
parent 987be0eee2
commit bb1ff5c579
3 changed files with 17 additions and 10 deletions

View File

@ -90,3 +90,9 @@ class Plugin:
contextName=self.module_name contextName=self.module_name
) )
return None return None
def connectSignal(self, signal_name, callback):
"""Connect to an application signal."""
if self.app and self.app.getSignalManager():
return self.app.getSignalManager().connectSignal(signal_name, callback)
return None

View File

@ -232,6 +232,7 @@ class PluginSystemManager:
return self._active_plugins return self._active_plugins
def setActivePlugins(self, activePlugins): def setActivePlugins(self, activePlugins):
"""Set active plugins and sync their state."""
logger.info(f"Setting active plugins: {activePlugins}") logger.info(f"Setting active plugins: {activePlugins}")
# Make sure we have scanned for plugins first # Make sure we have scanned for plugins first