mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
Merge pull request #179 from tgstation/Cyberboss-patch-1
Fixes certain buttons being enabled while the server is offline
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user