mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
Reset the config_files when the config directory changes
This commit is contained in:
parent
c2299b793c
commit
abc3964f73
1 changed files with 7 additions and 0 deletions
|
@ -80,6 +80,13 @@ class _ConfigManager:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
self.__config_directory = directory
|
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
|
return True
|
||||||
|
|
||||||
def get_config_dir(self):
|
def get_config_dir(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue