Fix config getters
This commit is contained in:
parent
b9aa5d0e4e
commit
1f508d9d8f
@ -63,6 +63,6 @@ class RequestInterceptor(QWebEngineUrlRequestInterceptor):
|
||||
for header, value in shared.custom_headers():
|
||||
info.setHttpHeader(header, value)
|
||||
|
||||
user_agent = config.val.conent.user_agent
|
||||
user_agent = config.val.content.user_agent
|
||||
if user_agent is not None:
|
||||
info.setHttpHeader(b'User-Agent', user_agent.encode('ascii'))
|
||||
|
@ -140,8 +140,8 @@ class TabWidget(QTabWidget):
|
||||
fields['title'] = fields['title'].replace('&', '&&')
|
||||
fields['index'] = idx + 1
|
||||
|
||||
fmt = config.val.tabs.title_format
|
||||
fmt_pinned = config.val.tabs.title_format_pinned
|
||||
fmt = config.val.tabs.title.format
|
||||
fmt_pinned = config.val.tabs.title.format_pinned
|
||||
|
||||
if tab.data.pinned:
|
||||
title = '' if fmt_pinned is None else fmt_pinned.format(**fields)
|
||||
@ -714,7 +714,7 @@ class TabBarStyle(QCommonStyle):
|
||||
elif element == QStyle.CE_TabBarTabLabel:
|
||||
if not opt.icon.isNull() and layouts.icon.isValid():
|
||||
self._draw_icon(layouts, opt, p)
|
||||
alignment = (config.val.tabs.title_alignment |
|
||||
alignment = (config.val.tabs.title.alignment |
|
||||
Qt.AlignVCenter | Qt.TextHideMnemonic)
|
||||
self._style.drawItemText(p, layouts.text, alignment, opt.palette,
|
||||
opt.state & QStyle.State_Enabled,
|
||||
|
Loading…
Reference in New Issue
Block a user