improve:自动更新

This commit is contained in:
2026-01-17 17:05:55 +08:00
parent c4230a15c9
commit 72a49b7bf2
6 changed files with 180 additions and 37 deletions
+3 -1
View File
@@ -3827,7 +3827,9 @@ namespace Ink_Canvas
if (radioButton != null)
{
string channel = radioButton.Tag.ToString();
UpdateChannel newChannel = channel == "Beta" ? UpdateChannel.Beta : UpdateChannel.Release;
UpdateChannel newChannel = channel == "Beta" ? UpdateChannel.Beta
: channel == "Preview" ? UpdateChannel.Preview
: UpdateChannel.Release;
// 如果通道没有变化,不需要执行更新检查
if (Settings.Startup.UpdateChannel == newChannel)