修改UpdateInfo方法,在就绪状态时调用更新UI
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user