mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-23 05:01:24 -05:00
Don't show autoconnect tab if local only
This commit is contained in:
parent
5ca7236f0c
commit
2ad9f8df58
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user