Don't use global preferences in plugins.

This commit is contained in:
Alex Dedul 2007-08-08 15:13:53 +00:00
parent c5705b2136
commit 69103fdf49
4 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ class EventLogging:
self.parent = interface
# Create an options file and try to load existing Values
self.config_file = deluge.common.CONFIG_DIR + "/event_logging.conf"
self.config = deluge.pref.Preferences(self.config_file)
self.config = deluge.pref.Preferences(self.config_file, False)
try:
self.config.load()
except IOError:

View File

@ -46,7 +46,7 @@ class TorrentNotification:
# Create an options file and try to load existing Values
self.config_file = deluge.common.CONFIG_DIR + "/notification.conf"
self.config = deluge.pref.Preferences(self.config_file)
self.config = deluge.pref.Preferences(self.config_file, False)
try:
self.config.load()
except IOError:

View File

@ -44,7 +44,7 @@ class TorrentPeers:
self.parent = interface
self.manager = core
self.config_file = deluge.common.CONFIG_DIR + "/peers.conf"
self.config = deluge.pref.Preferences(self.config_file)
self.config = deluge.pref.Preferences(self.config_file, False)
try:
self.config.load()
except IOError:

View File

@ -57,7 +57,7 @@ class TorrentPieces:
self.manager = core
self.parent = interface
self.config_file = deluge.common.CONFIG_DIR + "/pieces.conf"
self.config = deluge.pref.Preferences(self.config_file)
self.config = deluge.pref.Preferences(self.config_file, False)
try:
self.config.load()
except IOError: