Don't show autoconnect tab if local only

This commit is contained in:
Saptak S 2021-12-09 03:15:21 +05:30
parent 5ca7236f0c
commit 2ad9f8df58
No known key found for this signature in database
GPG Key ID: 7B7F1772C0C6FCBF

View File

@ -162,9 +162,9 @@ class TabWidget(QtWidgets.QTabWidget):
pass pass
def new_tab_clicked(self): def new_tab_clicked(self):
# if already connected to tor, create a new tab # if already connected to tor or local only, create a new tab
# Else open the initial connection tab # Else open the initial connection tab
if self.common.gui.onion.is_authenticated(): if self.common.gui.local_only or self.common.gui.onion.is_authenticated():
self.add_tab() self.add_tab()
else: else:
self.open_connection_tab() self.open_connection_tab()