Merge pull request #485 from dalf/pref_query_in_title

[mod] new preference: query_in_title
This commit is contained in:
Alexandre Flament 2021-11-24 13:10:27 +01:00 committed by GitHub
commit 42c1a938f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 42 additions and 2 deletions

View file

@ -411,6 +411,17 @@ class Preferences:
'on': True,
}
),
'query_in_title': MapSetting(
settings['ui']['query_in_title'],
is_locked('query_in_title'),
map={
'': settings['ui']['query_in_title'],
'0': False,
'1': True,
'True': True,
'False': False
}
),
}
self.engines = EnginesSetting('engines', choices=engines)