[fix] allow none as category in preferences - #1086

This commit is contained in:
Adam Tauber 2017-11-21 13:39:07 +01:00
parent 5ceaf21399
commit 128eb76604
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class Preferences(object):
def __init__(self, themes, categories, engines, plugins):
super(Preferences, self).__init__()
self.key_value_settings = {'categories': MultipleChoiceSetting(['general'], choices=categories),
self.key_value_settings = {'categories': MultipleChoiceSetting(['general'], choices=categories + ['none']),
'language': SearchLanguageSetting(settings['search']['language'],
choices=LANGUAGE_CODES),
'locale': EnumStringSetting(settings['ui']['default_locale'],