mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 00:09:38 -05:00
can't stop a server before it has finished starting
This commit is contained in:
parent
d1cd3c83ab
commit
0a28ad4538
@ -83,9 +83,12 @@ class ServerStatus(QtGui.QVBoxLayout):
|
|||||||
if self.status == self.STATUS_STOPPED:
|
if self.status == self.STATUS_STOPPED:
|
||||||
self.start_server_button.setEnabled(True)
|
self.start_server_button.setEnabled(True)
|
||||||
self.stop_server_button.setEnabled(False)
|
self.stop_server_button.setEnabled(False)
|
||||||
else:
|
elif self.status == self.STATUS_STARTED:
|
||||||
self.start_server_button.setEnabled(False)
|
self.start_server_button.setEnabled(False)
|
||||||
self.stop_server_button.setEnabled(True)
|
self.stop_server_button.setEnabled(True)
|
||||||
|
else:
|
||||||
|
self.start_server_button.setEnabled(False)
|
||||||
|
self.stop_server_button.setEnabled(False)
|
||||||
|
|
||||||
def start_server(self):
|
def start_server(self):
|
||||||
self.status = self.STATUS_WORKING
|
self.status = self.STATUS_WORKING
|
||||||
|
Loading…
Reference in New Issue
Block a user