Remove unnecessary migration function as this default value should be picked up from the DEFAULT_PREFS dictionary
This commit is contained in:
parent
c8718ad643
commit
0d3ba7541e
|
@ -120,7 +120,6 @@ class Core(component.Component):
|
||||||
|
|
||||||
# Get the core config
|
# Get the core config
|
||||||
self.config = deluge.configmanager.ConfigManager("core.conf")
|
self.config = deluge.configmanager.ConfigManager("core.conf")
|
||||||
self.config.run_converter((0, 1), 2, self.__migrate_config_1_to_2)
|
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
# If there was an interface value from the command line, use it, but
|
# If there was an interface value from the command line, use it, but
|
||||||
|
@ -171,12 +170,6 @@ class Core(component.Component):
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.warning("Failed to load lt state: %s", e)
|
log.warning("Failed to load lt state: %s", e)
|
||||||
|
|
||||||
|
|
||||||
def __migrate_config_1_to_2(self, config):
|
|
||||||
if 'sequential_download' not in config:
|
|
||||||
config['sequential_download'] = False
|
|
||||||
return config
|
|
||||||
|
|
||||||
def save_dht_state(self):
|
def save_dht_state(self):
|
||||||
"""Saves the dht state to a file"""
|
"""Saves the dht state to a file"""
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue