Still fighting with plugins.
This commit is contained in:
parent
987be0eee2
commit
bb1ff5c579
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user