From 6b172e2a1becfda8f4921e3ed11495f61b67a19a Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Sat, 28 May 2022 18:06:29 +0800 Subject: [PATCH] =?UTF-8?q?[#]=20=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2Radio?= =?UTF-8?q?Button=E5=90=8E=EF=BC=8C=E5=AE=89=E8=A3=85=E8=A1=A5=E4=B8=81?= =?UTF-8?q?=E7=9A=84=E5=90=AF=E7=94=A8=E7=8A=B6=E6=80=81=E4=B8=8D=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E6=83=85=E5=86=B5=20#346=20#344?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RevokeMsgPatcher/FormMain.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/RevokeMsgPatcher/FormMain.cs b/RevokeMsgPatcher/FormMain.cs index 41a9364..566bcec 100644 --- a/RevokeMsgPatcher/FormMain.cs +++ b/RevokeMsgPatcher/FormMain.cs @@ -349,8 +349,14 @@ namespace RevokeMsgPatcher private void radioButtons_CheckedChanged(object sender, EventArgs e) { - EnableAllButton(false); RadioButton radioButton = sender as RadioButton; + if (!radioButton.Checked) + { + return; + } + + EnableAllButton(false); + // 切换使用不同的防撤回对象 if (rbtWechat.Checked) { @@ -368,11 +374,11 @@ namespace RevokeMsgPatcher { modifier = (QQLiteModifier)rbtQQLite.Tag; } - txtPath.Text = modifier.FindInstallPath(); EnableAllButton(true); + // 触发了 txtPath_TextChanged 方法 已经调用了 InitEditorsAndUI(txtPath.Text); + // 也就是说 重新计算显示是否能够备份还原、版本和功能 + txtPath.Text = modifier.FindInstallPath(); - // 重新计算显示是否能够备份还原、版本和功能 - //InitEditorsAndUI(txtPath.Text); ga.RequestPageView($"{GetCheckedRadioButtonNameEn()}/{lblVersion.Text}/switch", "切换标签页"); }