mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-05 13:29:12 -04:00
When you open a new tab, make that the current tab
This commit is contained in:
parent
f83d88b29e
commit
4b4020c629
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