mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Check if Tor is connected instead of if the Tor controller is authenticated
This commit is contained in:
parent
9430439b5f
commit
73b570f4b4
@ -128,7 +128,7 @@ class Mode(QtWidgets.QWidget):
|
|||||||
self.wrapper_layout.addWidget(self.tor_not_connected_widget)
|
self.wrapper_layout.addWidget(self.tor_not_connected_widget)
|
||||||
self.setLayout(self.wrapper_layout)
|
self.setLayout(self.wrapper_layout)
|
||||||
|
|
||||||
if self.common.gui.onion.is_authenticated():
|
if self.common.gui.onion.connected_to_tor:
|
||||||
self.tor_connection_started()
|
self.tor_connection_started()
|
||||||
else:
|
else:
|
||||||
self.tor_connection_stopped()
|
self.tor_connection_stopped()
|
||||||
@ -571,6 +571,6 @@ class Mode(QtWidgets.QWidget):
|
|||||||
if self.common.gui.local_only:
|
if self.common.gui.local_only:
|
||||||
self.tor_connection_started()
|
self.tor_connection_started()
|
||||||
return
|
return
|
||||||
|
|
||||||
self.content_widget.hide()
|
self.content_widget.hide()
|
||||||
self.tor_not_connected_widget.show()
|
self.tor_not_connected_widget.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user