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