mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-28 15:40:56 +01:00
Merge pull request #190 from Cyberboss/ItsAlreadyOnYouMongs
Start button in CP is greyed out if the server is running
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user