Fix checks
This commit is contained in:
parent
cd29814ef3
commit
4e78775d3c
@ -141,7 +141,7 @@ class NewConfig:
|
|||||||
'Definitions of search engines which can be used via the '
|
'Definitions of search engines which can be used via the '
|
||||||
'address bar.\n'
|
'address bar.\n'
|
||||||
'The searchengine named DEFAULT is used when '
|
'The searchengine named DEFAULT is used when '
|
||||||
'general.auto_search is true an\d something else than an URL '
|
'general.auto_search is true and something else than an URL '
|
||||||
'was entered to be opened. Other search engines can be used '
|
'was entered to be opened. Other search engines can be used '
|
||||||
'via the bang-syntax, e.g. "qutebrowser !google". The string '
|
'via the bang-syntax, e.g. "qutebrowser !google". The string '
|
||||||
'"{}" will be replaced by the search term, use "{{" and "}}" '
|
'"{}" will be replaced by the search term, use "{{" and "}}" '
|
||||||
|
@ -110,7 +110,7 @@ class MainWindow(QWidget):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
super().resizeEvent(e)
|
super().resizeEvent(e)
|
||||||
confheight = config.config.get('general', 'completion_height')
|
confheight = str(config.config.get('general', 'completion_height'))
|
||||||
if confheight.endswith('%'):
|
if confheight.endswith('%'):
|
||||||
perc = int(confheight.rstrip('%'))
|
perc = int(confheight.rstrip('%'))
|
||||||
height = self.height() * perc / 100
|
height = self.height() * perc / 100
|
||||||
|
Loading…
Reference in New Issue
Block a user