#707 Hide/show the primary action in Receive Mode when tor connection is lost/regained

This commit is contained in:
Miguel Jacq 2018-07-14 16:19:16 +10:00
parent b27b0c20d9
commit 757a6bac59
2 changed files with 10 additions and 0 deletions

View file

@ -308,6 +308,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
if not self.timer.isActive():
self.timer.start(500)
self.share_mode.on_reload_settings()
self.receive_mode.on_reload_settings()
self.status_bar.clearMessage()
# If we switched off the shutdown timeout setting, ensure the widget is hidden.
@ -351,6 +352,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.system_tray.showMessage(strings._('gui_tor_connection_lost', True), strings._('gui_tor_connection_error_settings', True))
self.share_mode.handle_tor_broke()
self.receive_mode.handle_tor_broke()
# Process events from the web object
if self.mode == self.MODE_SHARE: