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