[+] 显示当前应用的版本是否被支持

This commit is contained in:
huiyadanli
2020-01-01 16:43:56 +08:00
parent 8630dc83df
commit 604f84b0f6
7 changed files with 333 additions and 51 deletions

View File

@@ -76,7 +76,7 @@ namespace RevokeMsgPatcher
if (!string.IsNullOrEmpty(txtPath.Text))
{
modifier.InitEditors(txtPath.Text);
lblVersion.Text = modifier.GetVersion();
modifier.SetVersionLabel(lblVersion);
btnRestore.Enabled = modifier.BackupExists();
}
}
@@ -178,7 +178,7 @@ namespace RevokeMsgPatcher
if (!string.IsNullOrEmpty(txtPath.Text))
{
modifier.InitEditors(txtPath.Text);
lblVersion.Text = modifier.GetVersion();
modifier.SetVersionLabel(lblVersion);
btnRestore.Enabled = modifier.BackupExists();
}
}
@@ -237,6 +237,7 @@ namespace RevokeMsgPatcher
needUpdate = false;
lblUpdatePachJson.Text = "[ 获取成功,点击查看更多信息 ]";
}
InitControls();
}
catch (Exception ex)
{
@@ -295,7 +296,7 @@ namespace RevokeMsgPatcher
if (!string.IsNullOrEmpty(txtPath.Text))
{
modifier.InitEditors(txtPath.Text);
lblVersion.Text = modifier.GetVersion();
modifier.SetVersionLabel(lblVersion);
btnRestore.Enabled = modifier.BackupExists();
}
ga.RequestPageView($"{GetCheckedRadioButtonNameEn()}/{lblVersion.Text}/switch", "切换标签页");