mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +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
|
||||
|
||||
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):
|
||||
|
|
Loading…
Add table
Reference in a new issue