mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-07 17:05:16 -04:00
Don't show autoconnect tab if local only
This commit is contained in:
parent
03890f6e5e
commit
99e683a6d6
1 changed files with 2 additions and 2 deletions
|
@ -162,9 +162,9 @@ class TabWidget(QtWidgets.QTabWidget):
|
|||
pass
|
||||
|
||||
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
|
||||
if self.common.gui.onion.is_authenticated():
|
||||
if self.common.gui.local_only or self.common.gui.onion.is_authenticated():
|
||||
self.add_tab()
|
||||
else:
|
||||
self.open_connection_tab()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue