mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-12 11:22:14 -04:00
Open a new tab to begin with, and open a new tab when the last tab is closed
This commit is contained in:
parent
68310070a4
commit
eb78b77073
2 changed files with 6 additions and 5 deletions
|
@ -98,14 +98,11 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||
# Tabs
|
||||
self.tabs = TabWidget(self.common, self.system_tray, self.status_bar)
|
||||
|
||||
# Start with a tab
|
||||
# new_tab = Tab(self.common, self.system_tray, self.status_bar, filenames)
|
||||
# self.tabs.insertTab(0, new_tab, strings._("gui_new_tab"))
|
||||
# self.tabs.setCurrentIndex(0)
|
||||
# Start with opening the first tab
|
||||
self.tabs.new_tab_clicked()
|
||||
|
||||
# Layout
|
||||
layout = QtWidgets.QVBoxLayout()
|
||||
# layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.addWidget(self.tabs)
|
||||
|
||||
central_widget = QtWidgets.QWidget()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue