Move CoreConfig component out of GtkUI since it's UI independent

This commit is contained in:
Andrew Resch 2009-04-17 21:09:14 +00:00
parent 8fef414054
commit b6f40a8115
2 changed files with 1 additions and 4 deletions

View File

@ -30,7 +30,7 @@ from deluge.log import LOG as log
class CoreConfig(component.Component): class CoreConfig(component.Component):
def __init__(self): def __init__(self):
log.debug("CoreConfig init..") log.debug("CoreConfig init..")
component.Component.__init__(self, "CoreConfig", ["Signals"]) component.Component.__init__(self, "CoreConfig")
self.config = {} self.config = {}
client.register_event_handler("ConfigValueChangedEvent", self.on_configvaluechanged_event) client.register_event_handler("ConfigValueChangedEvent", self.on_configvaluechanged_event)

View File

@ -54,7 +54,6 @@ from ipcinterface import IPCInterface
from queuedtorrents import QueuedTorrents from queuedtorrents import QueuedTorrents
from addtorrentdialog import AddTorrentDialog from addtorrentdialog import AddTorrentDialog
from coreconfig import CoreConfig
import deluge.configmanager import deluge.configmanager
import deluge.common import deluge.common
@ -179,8 +178,6 @@ class GtkUI:
self.statusbar = StatusBar() self.statusbar = StatusBar()
self.addtorrentdialog = AddTorrentDialog() self.addtorrentdialog = AddTorrentDialog()
self.coreconfig = CoreConfig()
# Initalize the plugins # Initalize the plugins
self.plugins = PluginManager() self.plugins = PluginManager()