mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-27 08:36:05 -04:00
Starting to make persistent tabs persistent
This commit is contained in:
parent
1b36fe4036
commit
a5f8fee065
9 changed files with 115 additions and 25 deletions
|
@ -120,8 +120,13 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||
# Tabs
|
||||
self.tabs = TabWidget(self.common, self.system_tray, self.status_bar)
|
||||
|
||||
# Start with opening the first tab
|
||||
self.tabs.new_tab_clicked()
|
||||
# If we have saved persistent tabs, try opening those
|
||||
if len(self.common.settings.get("persistent_tabs")) > 0:
|
||||
for mode_settings_id in self.common.settings.get("persistent_tabs"):
|
||||
self.tabs.load_tab(mode_settings_id)
|
||||
else:
|
||||
# Start with opening the first tab
|
||||
self.tabs.new_tab_clicked()
|
||||
|
||||
# Layout
|
||||
layout = QtWidgets.QVBoxLayout()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue