mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix clearing of metadata download author and tag map rules not working
This commit is contained in:
parent
4d31b8e3db
commit
4370d45611
@ -386,15 +386,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
self.sources_model.commit()
|
||||
self.fields_model.commit()
|
||||
if self.tag_map_rules is not None:
|
||||
if self.tag_map_rules:
|
||||
msprefs['tag_map_rules'] = self.tag_map_rules
|
||||
else:
|
||||
msprefs.pop('tag_map_rules', None)
|
||||
msprefs['tag_map_rules'] = self.tag_map_rules or []
|
||||
if self.author_map_rules is not None:
|
||||
if self.author_map_rules:
|
||||
msprefs['author_map_rules'] = self.author_map_rules
|
||||
else:
|
||||
msprefs.pop('author_map_rules', None)
|
||||
msprefs['author_map_rules'] = self.author_map_rules or []
|
||||
return ConfigWidgetBase.commit(self)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user