diff --git a/TGControlPanel/ServerPage.cs b/TGControlPanel/ServerPage.cs index a4f5aa2089..71c6b60277 100644 --- a/TGControlPanel/ServerPage.cs +++ b/TGControlPanel/ServerPage.cs @@ -147,13 +147,13 @@ namespace TGControlPanel return; var Online = DD.DaemonStatus() == TGDreamDaemonStatus.Online; + ServerStartButton.Enabled = !Online; ServerGStopButton.Enabled = Online; ServerGRestartButton.Enabled = Online; ServerStopButton.Enabled = Online; ServerRestartButton.Enabled = Online; - - var ShuttingDown = DD.ShutdownInProgress(); - ServerGStopButton.Checked = ShuttingDown; + + ServerGStopButton.Checked = DD.ShutdownInProgress(); AutostartCheckbox.Checked = DD.Autostart(); WebclientCheckBox.Checked = DD.Webclient();