修复Connected状态处理逻辑顺序错误
This commit is contained in:
@@ -808,13 +808,13 @@ namespace JoyD.Windows.CS.Toprie
|
|||||||
case ConnectionStatus.Connected:
|
case ConnectionStatus.Connected:
|
||||||
Console.WriteLine("设备已连接");
|
Console.WriteLine("设备已连接");
|
||||||
|
|
||||||
|
// 清除错误信息
|
||||||
|
ShowError(string.Empty);
|
||||||
|
|
||||||
// 清除显示标志并刷新UI
|
// 清除显示标志并刷新UI
|
||||||
_isDisplayingInfo = false;
|
_isDisplayingInfo = false;
|
||||||
UpdateImageOnUI();
|
UpdateImageOnUI();
|
||||||
|
|
||||||
// 清除错误信息
|
|
||||||
ShowError(string.Empty);
|
|
||||||
|
|
||||||
// 仅在首次连接时设置为热图模式,重连时保留之前的模式
|
// 仅在首次连接时设置为热图模式,重连时保留之前的模式
|
||||||
if (!_isReceivingImage) // 首次连接时_isReceivingImage为false
|
if (!_isReceivingImage) // 首次连接时_isReceivingImage为false
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user