mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-26 16:15:51 -04:00
When you open a new tab, make that the current tab
This commit is contained in:
parent
985b2c4719
commit
b9ac0ccb7d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue