From 69103fdf4911795fa47153fdc8e217a3444b02c4 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Wed, 8 Aug 2007 15:13:53 +0000 Subject: [PATCH] Don't use global preferences in plugins. --- plugins/EventLogging/__init__.py | 2 +- plugins/TorrentNotification/__init__.py | 2 +- plugins/TorrentPeers/__init__.py | 2 +- plugins/TorrentPieces/__init__.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/EventLogging/__init__.py b/plugins/EventLogging/__init__.py index 7f5b55550..ea97b7faf 100644 --- a/plugins/EventLogging/__init__.py +++ b/plugins/EventLogging/__init__.py @@ -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: diff --git a/plugins/TorrentNotification/__init__.py b/plugins/TorrentNotification/__init__.py index ccb58a233..30126df17 100644 --- a/plugins/TorrentNotification/__init__.py +++ b/plugins/TorrentNotification/__init__.py @@ -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: diff --git a/plugins/TorrentPeers/__init__.py b/plugins/TorrentPeers/__init__.py index b6afa5d38..31808e3d3 100644 --- a/plugins/TorrentPeers/__init__.py +++ b/plugins/TorrentPeers/__init__.py @@ -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: diff --git a/plugins/TorrentPieces/__init__.py b/plugins/TorrentPieces/__init__.py index 761994c06..d1c2c1c13 100644 --- a/plugins/TorrentPieces/__init__.py +++ b/plugins/TorrentPieces/__init__.py @@ -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: