mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-14 05:31:25 -05:00
Don't show autoconnect tab if local only
This commit is contained in:
parent
03890f6e5e
commit
99e683a6d6
@ -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…
x
Reference in New Issue
Block a user