Update MainWindow.xaml.cs
This commit is contained in:
@@ -832,8 +832,6 @@ namespace Ink_Canvas
|
|||||||
// 声明下载状态变量,用于整个方法
|
// 声明下载状态变量,用于整个方法
|
||||||
bool isDownloadSuccessful = false;
|
bool isDownloadSuccessful = false;
|
||||||
|
|
||||||
bool hasValidLineGroup = lineGroup != null;
|
|
||||||
|
|
||||||
if (AvailableLatestVersion != null)
|
if (AvailableLatestVersion != null)
|
||||||
{
|
{
|
||||||
// 检测到新版本,停止重试定时器
|
// 检测到新版本,停止重试定时器
|
||||||
@@ -1003,14 +1001,6 @@ namespace Ink_Canvas
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (hasValidLineGroup)
|
|
||||||
{
|
|
||||||
LogHelper.WriteLogToFile("AutoUpdate | Current version is already the latest, no retry needed");
|
|
||||||
|
|
||||||
// 停止重试定时器
|
|
||||||
timerCheckAutoUpdateRetry.Stop();
|
|
||||||
updateCheckRetryCount = 0;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// 检查更新失败,启动重试定时器
|
// 检查更新失败,启动重试定时器
|
||||||
@@ -1027,7 +1017,7 @@ namespace Ink_Canvas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 新增:崩溃后操作设置按钮事件
|
// 崩溃后操作设置按钮事件
|
||||||
private void RadioCrashAction_Checked(object sender, RoutedEventArgs e)
|
private void RadioCrashAction_Checked(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (RadioCrashSilentRestart != null && RadioCrashSilentRestart.IsChecked == true)
|
if (RadioCrashSilentRestart != null && RadioCrashSilentRestart.IsChecked == true)
|
||||||
|
|||||||
Reference in New Issue
Block a user