More config fixes
This commit is contained in:
parent
6a451b37d7
commit
cc0e66fe7b
@ -364,9 +364,9 @@ window.hide_wayland_decoration:
|
||||
keyhint.blacklist:
|
||||
type:
|
||||
name: List
|
||||
none_ok: true
|
||||
valtype:
|
||||
name: String
|
||||
none_ok: true
|
||||
default: null
|
||||
desc: >-
|
||||
Keychains that shouldn\'t be shown in the keyhint dialog.
|
||||
@ -1526,7 +1526,7 @@ colors.downloads.start.bg:
|
||||
desc: Color gradient start for download backgrounds.
|
||||
|
||||
colors.downloads.stop.fg:
|
||||
default: '#0000aa'
|
||||
default: white
|
||||
type: QtColor
|
||||
desc: Color gradient end for download text.
|
||||
|
||||
|
@ -99,10 +99,8 @@ def _get_search_url(txt):
|
||||
engine, term = _parse_search_term(txt)
|
||||
assert term
|
||||
if engine is None:
|
||||
# FIXME:conf
|
||||
template = config.val.searchengines.DEFAULT
|
||||
else:
|
||||
template = config.get('searchengines', engine)
|
||||
engine = 'DEFAULT'
|
||||
template = config.val.searchengines[engine]
|
||||
url = qurl_from_user_input(template.format(urllib.parse.quote(term)))
|
||||
qtutils.ensure_valid(url)
|
||||
return url
|
||||
|
Loading…
Reference in New Issue
Block a user