Fix on_config_changed for tabbar (renamed to tabs)
This commit is contained in:
parent
052fa8e277
commit
0c9d7723c8
@ -411,7 +411,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
|||||||
super().on_config_changed(section, option)
|
super().on_config_changed(section, option)
|
||||||
for tab in self._tabs:
|
for tab in self._tabs:
|
||||||
tab.on_config_changed(section, option)
|
tab.on_config_changed(section, option)
|
||||||
if (section, option) == ('tabbar', 'show-favicons'):
|
if (section, option) == ('tabs', 'show-favicons'):
|
||||||
show = config.get('tabs', 'show-favicons')
|
show = config.get('tabs', 'show-favicons')
|
||||||
for i, tab in enumerate(self.widgets()):
|
for i, tab in enumerate(self.widgets()):
|
||||||
if show:
|
if show:
|
||||||
|
@ -83,7 +83,7 @@ class TabWidget(QTabWidget):
|
|||||||
def on_config_changed(self, section, option):
|
def on_config_changed(self, section, option):
|
||||||
"""Update attributes when config changed."""
|
"""Update attributes when config changed."""
|
||||||
self.tabBar().on_config_changed(section, option)
|
self.tabBar().on_config_changed(section, option)
|
||||||
if section == 'tabbar':
|
if section == 'tabs':
|
||||||
self._init_config()
|
self._init_config()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user