mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-27 08:19:41 -05:00
When you open a new tab, make that the current tab
This commit is contained in:
parent
f83d88b29e
commit
4b4020c629
@ -85,7 +85,8 @@ class TabWidget(QtWidgets.QTabWidget):
|
|||||||
def new_tab_clicked(self):
|
def new_tab_clicked(self):
|
||||||
# Add a new tab
|
# Add a new tab
|
||||||
tab = Tab(self.common, self.system_tray, self.status_bar)
|
tab = Tab(self.common, self.system_tray, self.status_bar)
|
||||||
self.addTab(tab, "New Tab")
|
index = self.addTab(tab, "New Tab")
|
||||||
|
self.setCurrentIndex(index)
|
||||||
|
|
||||||
|
|
||||||
class TabBar(QtWidgets.QTabBar):
|
class TabBar(QtWidgets.QTabBar):
|
||||||
|
Loading…
Reference in New Issue
Block a user