mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fix crash when open AMS 2 humidity popup (#12123)
This commit is contained in:
@@ -147,7 +147,7 @@ void uiAmsPercentHumidityDryPopup::UpdateContents()
|
|||||||
// table grid
|
// table grid
|
||||||
const wxString& humidity_str = wxString::Format("%d%%", m_humidity_percent);
|
const wxString& humidity_str = wxString::Format("%d%%", m_humidity_percent);
|
||||||
m_humidity_label->SetLabel(humidity_str);
|
m_humidity_label->SetLabel(humidity_str);
|
||||||
const wxString& temp_str = wxString::Format(u8"%d\u2103" /* °C */, (int)std::round(m_current_temperature));
|
const wxString& temp_str = wxString::Format(wxString::FromUTF8(u8"%d\u2103" /* °C */), (int)std::round(m_current_temperature));
|
||||||
m_temperature_label->SetLabel(temp_str);
|
m_temperature_label->SetLabel(temp_str);
|
||||||
|
|
||||||
if (m_left_dry_time > 0)
|
if (m_left_dry_time > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user