From 14ece5080755986b706016a156a5adc5a3c76926 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Sun, 11 Feb 2018 17:32:45 +1100 Subject: [PATCH] Clear statusBar messages when the server button is clicked --- onionshare_gui/onionshare_gui.py | 1 + onionshare_gui/server_status.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index 5d0999b2..f30bdd2f 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -90,6 +90,7 @@ class OnionShareGui(QtWidgets.QMainWindow): self.starting_server_step2.connect(self.start_server_step2) self.starting_server_step3.connect(self.start_server_step3) self.starting_server_error.connect(self.start_server_error) + self.server_status.button_clicked.connect(self.clear_message) # Filesize warning self.filesize_warning = QtWidgets.QLabel() diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py index ec046fa6..6f84f751 100644 --- a/onionshare_gui/server_status.py +++ b/onionshare_gui/server_status.py @@ -29,6 +29,7 @@ class ServerStatus(QtWidgets.QWidget): """ server_started = QtCore.pyqtSignal() server_stopped = QtCore.pyqtSignal() + button_clicked = QtCore.pyqtSignal() url_copied = QtCore.pyqtSignal() hidservauth_copied = QtCore.pyqtSignal() @@ -229,6 +230,7 @@ class ServerStatus(QtWidgets.QWidget): self.start_server() elif self.status == self.STATUS_STARTED: self.stop_server() + self.button_clicked.emit() def start_server(self): """