When you open a new tab, make that the current tab

This commit is contained in:
Micah Lee 2019-10-27 14:23:45 -07:00
parent f83d88b29e
commit 4b4020c629
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -85,7 +85,8 @@ class TabWidget(QtWidgets.QTabWidget):
def new_tab_clicked(self):
# Add a new tab
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):