mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-03 03:46:21 -04:00
#707 Hide/show the primary action in Receive Mode when tor connection is lost/regained
This commit is contained in:
parent
f5ccfcf2cc
commit
89e341c8ec
2 changed files with 10 additions and 0 deletions
|
@ -123,6 +123,7 @@ class ReceiveMode(Mode):
|
|||
"""
|
||||
Connection to Tor broke.
|
||||
"""
|
||||
self.primary_action.hide()
|
||||
self.info_widget.hide()
|
||||
|
||||
def handle_request_load(self, event):
|
||||
|
@ -166,6 +167,13 @@ class ReceiveMode(Mode):
|
|||
"""
|
||||
self.uploads.finished(event["data"]["id"])
|
||||
|
||||
def on_reload_settings(self):
|
||||
"""
|
||||
We should be ok to re-enable the 'Start Receive Mode' button now.
|
||||
"""
|
||||
self.primary_action.show()
|
||||
self.info_widget.show()
|
||||
|
||||
def reset_info_counters(self):
|
||||
"""
|
||||
Set the info counters back to zero.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue