restructure code
This commit is contained in:
parent
8c487e9a5f
commit
c70accda22
@ -410,10 +410,10 @@ class TabbedBrowser(tabwidget.TabWidget):
|
||||
tab.openurl(url)
|
||||
if background is None:
|
||||
background = config.get('tabs', 'background-tabs')
|
||||
if not background:
|
||||
self.setCurrentWidget(tab)
|
||||
elif background:
|
||||
if background:
|
||||
self.tab_index_changed.emit(self.currentIndex(), self.count())
|
||||
else:
|
||||
self.setCurrentWidget(tab)
|
||||
tab.show()
|
||||
self.new_tab.emit(tab, idx)
|
||||
return tab
|
||||
|
Loading…
Reference in New Issue
Block a user