aboutsummaryrefslogtreecommitdiff
path: root/desktop/onionshare/main_window.py
diff options
context:
space:
mode:
authorSaptak S <saptak013@gmail.com>2022-02-24 18:04:26 +0530
committerSaptak S <saptak013@gmail.com>2022-02-24 18:04:26 +0530
commit2d7e980adece27cd54536f87e9ee7b03df9b701b (patch)
tree131f47d5c99975b212eb141a38d831123b0496ed /desktop/onionshare/main_window.py
parente168080b77c1ec7ba40022a106a43d524e227945 (diff)
downloadonionshare-2d7e980adece27cd54536f87e9ee7b03df9b701b.tar.gz
onionshare-2d7e980adece27cd54536f87e9ee7b03df9b701b.zip
Moving tor settings and app settings as subtabs under a parent settings tab
Diffstat (limited to 'desktop/onionshare/main_window.py')
-rw-r--r--desktop/onionshare/main_window.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/onionshare/main_window.py b/desktop/onionshare/main_window.py
index 9c6f455f..61119683 100644
--- a/desktop/onionshare/main_window.py
+++ b/desktop/onionshare/main_window.py
@@ -253,7 +253,12 @@ class MainWindow(QtWidgets.QMainWindow):
Open the SettingsTab
"""
self.common.log("MainWindow", "open_settings")
- self.tabs.open_settings_tab()
+ from_autoconnect = False
+ for tab_id in self.tabs.tabs:
+ if type(self.tabs.tabs[tab_id]) is AutoConnectTab:
+ from_autoconnect = True
+ break
+ self.tabs.open_settings_tab(from_autoconnect)
def settings_have_changed(self):
self.common.log("OnionShareGui", "settings_have_changed")