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 985b2c4719
commit b9ac0ccb7d

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):