修复Connected状态处理逻辑顺序错误

This commit is contained in:
zqm
2025-10-30 10:43:01 +08:00
parent a6e16ef46b
commit 8d62d8378a

View File

@@ -808,13 +808,13 @@ namespace JoyD.Windows.CS.Toprie
case ConnectionStatus.Connected:
Console.WriteLine("设备已连接");
// 清除错误信息
ShowError(string.Empty);
// 清除显示标志并刷新UI
_isDisplayingInfo = false;
UpdateImageOnUI();
// 清除错误信息
ShowError(string.Empty);
// 仅在首次连接时设置为热图模式,重连时保留之前的模式
if (!_isReceivingImage) // 首次连接时_isReceivingImage为false
{