修改图像更新逻辑,移除对UpdateInfo的调用,只保留保存LastImage和调用更新UI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user