From 873f4baf08dc4c8effdb9e40d7f4fff9da65f88b Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 17 Sep 2017 23:28:12 -0400 Subject: [PATCH] Fixes certain buttons being enabled while the server is offline --- TGControlPanel/ServerPage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TGControlPanel/ServerPage.cs b/TGControlPanel/ServerPage.cs index ba5419d575..887ceffd79 100644 --- a/TGControlPanel/ServerPage.cs +++ b/TGControlPanel/ServerPage.cs @@ -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();