FIX: round the temp

jira: [STUDIO-12478]
Change-Id: I9218e56d2fd006b0806d12dd44e58b06746a08fb
(cherry picked from commit 94efa9177eac8e690878348691789a4553dc5326)
This commit is contained in:
xin.zhang
2025-06-03 21:17:06 +08:00
committed by Noisyfox
parent 48dd4874d8
commit d86632b993

View File

@@ -146,7 +146,7 @@ void uiAmsPercentHumidityDryPopup::UpdateContents()
// table grid
const wxString& humidity_str = wxString::Format("%d%%", m_humidity_percent);
m_humidity_label->SetLabel(humidity_str);
const wxString& temp_str = wxString::Format(_L("%.1f \u2103"), m_current_temperature);
const wxString& temp_str = wxString::Format(_L("%d \u2103"), (int)std::round(m_current_temperature));
m_temperature_label->SetLabel(temp_str);
if (m_left_dry_time > 0)