can't stop a server before it has finished starting

This commit is contained in:
Micah Lee 2014-08-29 15:50:19 -07:00
parent d1cd3c83ab
commit 0a28ad4538

View File

@ -83,9 +83,12 @@ class ServerStatus(QtGui.QVBoxLayout):
if self.status == self.STATUS_STOPPED:
self.start_server_button.setEnabled(True)
self.stop_server_button.setEnabled(False)
else:
elif self.status == self.STATUS_STARTED:
self.start_server_button.setEnabled(False)
self.stop_server_button.setEnabled(True)
else:
self.start_server_button.setEnabled(False)
self.stop_server_button.setEnabled(False)
def start_server(self):
self.status = self.STATUS_WORKING