From abc3964f73452e7f75554d890ea16ebce20c2000 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 3 Aug 2009 16:56:01 +0000 Subject: [PATCH] Reset the config_files when the config directory changes --- deluge/configmanager.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deluge/configmanager.py b/deluge/configmanager.py index ac79ab0b4..4638494d5 100644 --- a/deluge/configmanager.py +++ b/deluge/configmanager.py @@ -80,6 +80,13 @@ class _ConfigManager: return False self.__config_directory = directory + + # Reset the config_files so we don't get config from old config folder + # XXX: Probably should have it go through the config_files dict and try + # to reload based on the new config directory + self.save() + self.config_files = {} + return True def get_config_dir(self):