Merge branch 'clear_messages_on_server_button_click' of https://github.com/mig5/onionshare into mig5-clear_messages_on_server_button_click

This commit is contained in:
Micah Lee 2018-02-13 17:28:03 -08:00
commit 127d097e96
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 3 additions and 0 deletions

View File

@ -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()

View File

@ -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()
@ -212,6 +213,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):
"""