mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-16 07:19:00 +00:00
Rename the daemons PluginManager component to CorePluginManager to not
conflict with the gtkui in Classic mode.
This commit is contained in:
parent
e9f8c7b0e8
commit
6a0594b47d
3 changed files with 4 additions and 4 deletions
|
@ -664,12 +664,12 @@ class Core(component.Component):
|
|||
f = open(os.path.join(self.config["config_location"], "plugins", filename), "wb")
|
||||
f.write(plugin_data.data)
|
||||
f.close()
|
||||
component.get("PluginManager").scan_for_plugins()
|
||||
component.get("CorePluginManager").scan_for_plugins()
|
||||
|
||||
@export()
|
||||
def rescan_plugins(self):
|
||||
"""Rescans the plugin folders for new plugins"""
|
||||
component.get("PluginManager").scan_for_plugins()
|
||||
component.get("CorePluginManager").scan_for_plugins()
|
||||
|
||||
@export()
|
||||
def rename_files(self, torrent_id, filenames):
|
||||
|
|
|
@ -38,7 +38,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
|
|||
functions to access parts of the core."""
|
||||
|
||||
def __init__(self, core):
|
||||
component.Component.__init__(self, "PluginManager")
|
||||
component.Component.__init__(self, "CorePluginManager")
|
||||
self.core = core
|
||||
# Set up the hooks dictionary
|
||||
self.hooks = {
|
||||
|
|
|
@ -168,7 +168,7 @@ class TorrentManager(component.Component):
|
|||
|
||||
def start(self):
|
||||
# Get the pluginmanager reference
|
||||
self.plugins = component.get("PluginManager")
|
||||
self.plugins = component.get("CorePluginManager")
|
||||
|
||||
self.signals = component.get("SignalManager")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue