修改图像更新逻辑,移除对UpdateInfo的调用,只保留保存LastImage和调用更新UI

This commit is contained in:
zqm
2025-11-05 13:11:52 +08:00
parent ce9a20918f
commit b211bb1e5f

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
@@ -630,15 +630,14 @@ namespace JoyD.Windows.CS.Toprie
return;
}
// 按照README中要求的修改流程第4点和第5点图像更新时保存LastImage只在非暂停状态下调用更新Info和UI
// 按照README中要求图像更新时保存LastImage调用更新UI调用更新Info
this.BeginInvoke(new Action(() =>
{
try
{
if (!_isPaused)
{
UpdateInfo(); // 更新Info
UpdateImageOnUI(); // 然后更新UI
UpdateImageOnUI(); // 只调用更新UI不调用更新Info
}
}
catch (Exception ex)