Clear statusBar messages when the server button is clicked

This commit is contained in:
Miguel Jacq 2018-02-11 17:32:45 +11:00
parent 2fb8d1f836
commit 14ece50807
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
2 changed files with 3 additions and 0 deletions

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