Fixes certain buttons being enabled while the server is offline

This commit is contained in:
Jordan Brown
2017-09-17 23:28:12 -04:00
committed by GitHub
parent d0db985ba8
commit 873f4baf08
+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();