mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 10:42:58 -03:00
Clear statusBar messages when the server button is clicked
This commit is contained in:
parent
2fb8d1f836
commit
14ece50807
2 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue