mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-25 23:55:36 -04:00
Keeps the same widget on cancelling a tor connection
This commit is contained in:
parent
761eab28e8
commit
50326b6e26
1 changed files with 9 additions and 4 deletions
|
@ -326,8 +326,13 @@ class AutoConnectTab(QtWidgets.QWidget):
|
||||||
"""
|
"""
|
||||||
self.tor_con.hide()
|
self.tor_con.hide()
|
||||||
|
|
||||||
# If we're on first launch, switch to use bridge
|
# If we're on first launch, check if wasCancelled
|
||||||
|
# If cancelled, stay in first launch widget and show buttons
|
||||||
|
# Else, switch to use bridge
|
||||||
if self.first_launch_widget.isVisible():
|
if self.first_launch_widget.isVisible():
|
||||||
|
if self.tor_con.wasCanceled():
|
||||||
|
self.first_launch_widget.show_buttons()
|
||||||
|
else:
|
||||||
self.first_launch_widget.show_buttons()
|
self.first_launch_widget.show_buttons()
|
||||||
self.first_launch_widget.hide()
|
self.first_launch_widget.hide()
|
||||||
self.use_bridge_widget.show()
|
self.use_bridge_widget.show()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue