修改UpdateInfo方法,在就绪状态时调用更新UI

This commit is contained in:
zqm
2025-11-05 13:19:41 +08:00
parent b211bb1e5f
commit 4fc4a2844e

View File

@@ -177,10 +177,13 @@ namespace JoyD.Windows.CS.Toprie
// 设置显示标志 // 设置显示标志
_isDisplayingInfo = (isPaused || isDisconnected || isReconnecting || _showGlobalTemperature || _showAreaTemperature); _isDisplayingInfo = (isPaused || isDisconnected || isReconnecting || _showGlobalTemperature || _showAreaTemperature);
}
// 步骤4最后调用更新UI注意在DeviceManager_ImageReceived中已处理非暂停状态下的UI更新 // 步骤3如果就绪调用更新UI
// 这里不再直接调用UpdateImageOnUI避免重复更新 if (isReady)
{
UpdateImageOnUI();
}
}
} }
catch (Exception ex) catch (Exception ex)
{ {