mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-16 09:47:27 -05:00
Merge branch 'mig5-clear_messages_on_server_button_click' into ux-update
This commit is contained in:
commit
7a1ab4fdbe
@ -90,6 +90,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||||||
self.starting_server_step2.connect(self.start_server_step2)
|
self.starting_server_step2.connect(self.start_server_step2)
|
||||||
self.starting_server_step3.connect(self.start_server_step3)
|
self.starting_server_step3.connect(self.start_server_step3)
|
||||||
self.starting_server_error.connect(self.start_server_error)
|
self.starting_server_error.connect(self.start_server_error)
|
||||||
|
self.server_status.button_clicked.connect(self.clear_message)
|
||||||
|
|
||||||
# Filesize warning
|
# Filesize warning
|
||||||
self.filesize_warning = QtWidgets.QLabel()
|
self.filesize_warning = QtWidgets.QLabel()
|
||||||
|
@ -29,6 +29,7 @@ class ServerStatus(QtWidgets.QWidget):
|
|||||||
"""
|
"""
|
||||||
server_started = QtCore.pyqtSignal()
|
server_started = QtCore.pyqtSignal()
|
||||||
server_stopped = QtCore.pyqtSignal()
|
server_stopped = QtCore.pyqtSignal()
|
||||||
|
button_clicked = QtCore.pyqtSignal()
|
||||||
url_copied = QtCore.pyqtSignal()
|
url_copied = QtCore.pyqtSignal()
|
||||||
hidservauth_copied = QtCore.pyqtSignal()
|
hidservauth_copied = QtCore.pyqtSignal()
|
||||||
|
|
||||||
@ -212,6 +213,7 @@ class ServerStatus(QtWidgets.QWidget):
|
|||||||
self.start_server()
|
self.start_server()
|
||||||
elif self.status == self.STATUS_STARTED:
|
elif self.status == self.STATUS_STARTED:
|
||||||
self.stop_server()
|
self.stop_server()
|
||||||
|
self.button_clicked.emit()
|
||||||
|
|
||||||
def start_server(self):
|
def start_server(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user