mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
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