From 5f9c944619c67b28df8efd35c99482a779084948 Mon Sep 17 00:00:00 2001 From: Amazing_DM Date: Thu, 23 Apr 2020 15:32:00 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E9=98=B2=E6=AD=A2=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E4=BD=BF=E7=94=A8=E8=80=8C=E4=B8=94=E7=9C=8B=E4=B8=8D?= =?UTF-8?q?=E6=87=82=E6=96=87=E5=AD=97=E6=8F=8F=E8=BF=B0=E7=9A=84=E5=B0=8F?= =?UTF-8?q?=E7=99=BD=E4=B9=B1=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Netch/Forms/SubscribeForm.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Netch/Forms/SubscribeForm.cs b/Netch/Forms/SubscribeForm.cs index e49b5c1a..7bba5a0f 100644 --- a/Netch/Forms/SubscribeForm.cs +++ b/Netch/Forms/SubscribeForm.cs @@ -48,7 +48,16 @@ namespace Netch.Forms ControlButton.Text = Utils.i18N.Translate(ControlButton.Text); UserAgentTextBox.Text = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"; - UseSelectedServerCheckBox.Checked = Global.Settings.UseProxyToUpdateSubscription; + + if (Global.Settings.Server.Count > 0) + { + UseSelectedServerCheckBox.Enabled = true; + UseSelectedServerCheckBox.Checked = Global.Settings.UseProxyToUpdateSubscription; + } + else { + UseSelectedServerCheckBox.Checked = false; + UseSelectedServerCheckBox.Enabled = false; + } InitSubscribeLink(); }