Merge pull request #179 from tgstation/Cyberboss-patch-1

Fixes certain buttons being enabled while the server is offline
This commit is contained in:
Jordan Brown
2017-09-17 23:30:03 -04:00
committed by GitHub
+2 -1
View File
@@ -150,10 +150,11 @@ namespace TGControlPanel
var Online = DD.DaemonStatus() == TGDreamDaemonStatus.Online;
ServerGStopButton.Enabled = Online;
ServerGRestartButton.Enabled = Online;
ServerStopButton.Enabled = Online;
ServerRestartButton.Enabled = Online;
var ShuttingDown = DD.ShutdownInProgress();
ServerGStopButton.Checked = ShuttingDown;
ServerGStopButton.Enabled = !ShuttingDown;
AutostartCheckbox.Checked = DD.Autostart();
WebclientCheckBox.Checked = DD.Webclient();